Exemplo n.º 1
0
 // Makes sure the caller has path discovery permission for full fileName path.
 private static void ValidateFileNamePermissions(ref string fileName)
 {
     if (!SecurityHelper.CallerHasPathDiscoveryPermission(fileName))
     {
         // If the caller didn't have path discovery permission for fileName, we can still give out relative file name.
         fileName = Path.GetFileName(fileName);
     }
 }