常用方法
常用方法
常用方法
常用方法
// 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); } }