446 references to FileIOPermissionAccess
mscorlib (238)
system\appdomain.cs (2)
1081
permission = new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, dataDirectory);
2728
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.PathDiscovery, dyndir);
system\AppDomainSetup.cs (1)
826
access:
FileIOPermissionAccess
.PathDiscovery,
system\bcldebug.cs (1)
359
perms.AddPermission(new FileIOPermission(
FileIOPermissionAccess
.AllAccess, Path.GetFullPath(".")));
system\cfgparser.cs (1)
274
(new FileIOPermission(
FileIOPermissionAccess
.Read, System.IO.Path.GetFullPathInternal( fileName ) )).Demand();
system\diagnostics\stackframe.cs (2)
218
perm.AllFiles =
FileIOPermissionAccess
.PathDiscovery;
296
perm.AllFiles =
FileIOPermissionAccess
.PathDiscovery;
system\environment.cs (3)
419
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.PathDiscovery, path);
1500
createPermission.AllFiles =
FileIOPermissionAccess
.Write;
1551
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, s).Demand();
system\io\__error.cs (1)
96
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.PathDiscovery, path, false, false);
system\io\directory.cs (7)
148
(
FileIOPermissionAccess
)access,
286
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Write, control, securityList, false, false);
1251
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Write |
FileIOPermissionAccess
.Read, sourcePath, false, false);
1252
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Write, destPath, false, false);
1326
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Write, demandPath, false, false);
1505
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Write, GetDemandDir(fullPath, true), false, false);
system\io\directoryinfo.cs (2)
255
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Write, demandDirForCreation, false, false);
630
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.PathDiscovery, demandPath, false, false);
system\io\driveinfo.cs (3)
87
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, demandPath).Demand();
98
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, demandPath).Demand();
263
new FileIOPermission(
FileIOPermissionAccess
.Write, demandPath).Demand();
system\io\file.cs (19)
164
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Read, fullSourceFileName, false, false);
165
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Write, fullDestFileName, false, false);
300
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Write, fullPath, false, false);
328
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.Write, fullPath, false, false);
359
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.Write, fullPath, false, false);
442
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Read, path, false, false);
536
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Read, fullPath, false, false);
600
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Read, fullPath, false, false);
664
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Read, fullPath, false, false);
685
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Read, fullPath, false, false);
707
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Write, fullPath, false, false);
1258
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Write |
FileIOPermissionAccess
.Read, fullSourceFileName, false, false);
1259
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Write, fullDestFileName, false, false);
1334
FileIOPermission perm = new FileIOPermission(
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.Write, new String[] { fullSrcPath, fullDestPath });
1336
perm.AddPathList(
FileIOPermissionAccess
.Write, fullBackupPath);
system\io\fileinfo.cs (7)
110
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Read, fullPath, false, false);
132
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Read, FullPath, false, false);
194
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.PathDiscovery, directoryName, false, false);
344
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Write, FullPath, false, false);
471
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Write |
FileIOPermissionAccess
.Read, FullPath, false, false);
472
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Write, fullDestFileName, false, false);
system\io\filestream.cs (7)
758
FileIOPermissionAccess
secAccess =
FileIOPermissionAccess
.NoAccess;
763
secAccess = secAccess |
FileIOPermissionAccess
.Read;
789
secAccess = secAccess |
FileIOPermissionAccess
.Append;
791
secAccess = secAccess |
FileIOPermissionAccess
.Write;
872
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.PathDiscovery, _fileName, false, false);
1207
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.PathDiscovery, _fileName, false, false);
system\io\filesystemenumerable.cs (5)
238
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, demandPaths, false, false).Demand();
348
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, demandPaths, false, false).Demand();
591
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.PathDiscovery, demandDir, false, false);
700
new FileIOPermission(
FileIOPermissionAccess
.Read, new string[] { fullPath }, false, false).Demand();
729
new FileIOPermission(
FileIOPermissionAccess
.Read, new string[] { fullPath + "\\." }, false, false).Demand();
system\io\filesysteminfo.cs (4)
103
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.PathDiscovery, FullPath);
115
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.PathDiscovery, FullPath);
312
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Write, FullPath);
337
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.PathDiscovery, FullPath);
system\io\isolatedstorage\isolatedstoragefile.cs (26)
573
Demand(new FileIOPermission(
FileIOPermissionAccess
.Read, new String[] { fullPath }, false, false));
617
Demand(new FileIOPermission(
FileIOPermissionAccess
.Read, new String[] { fullPath }, false, false));
648
Demand(new FileIOPermission(
FileIOPermissionAccess
.Read, new String[] { fullPath }, false, false));
717
Demand(new FileIOPermission(
FileIOPermissionAccess
.Read, new String[] { fullPath }, false, false));
758
Demand(new FileIOPermission(
FileIOPermissionAccess
.Read, new String[] { fullPath }, false, false));
799
Demand(new FileIOPermission(
FileIOPermissionAccess
.Read, new String[] { fullPath }, false, false));
867
Demand(new FileIOPermission(
FileIOPermissionAccess
.Write |
FileIOPermissionAccess
.Read, new String[] { sourceFileNameFullPath }, false, false));
868
Demand(new FileIOPermission(
FileIOPermissionAccess
.Write, new String[] { destinationFileNameFullPath }, false, false));
999
Demand(new FileIOPermission(
FileIOPermissionAccess
.Write |
FileIOPermissionAccess
.Read, new String[] { sourceFileNameFullPath }, false, false));
1000
Demand(new FileIOPermission(
FileIOPermissionAccess
.Write, new String[] { destinationFileNameFullPath }, false, false));
1065
Demand(new FileIOPermission(
FileIOPermissionAccess
.Write |
FileIOPermissionAccess
.Read, new String[] { sourceDirectoryNameFullPath }, false, false));
1066
Demand(new FileIOPermission(
FileIOPermissionAccess
.Write, new String[] { destinationDirectoryNameFullPath }, false, false));
1324
FileIOPermissionAccess
.AllAccess, rootDir).Assert();
1346
FileIOPermissionAccess
.AllAccess, domainRoot).Assert();
1563
FileIOPermissionAccess
.Write, rootDir).Assert();
1790
FileIOPermissionAccess
.AllAccess, rootDir);
1874
FileIOPermissionAccess
.AllAccess, sb.ToString());
1994
new FileIOPermission(
FileIOPermissionAccess
.AllAccess, rootDir).Assert();
2052
new FileIOPermission(
FileIOPermissionAccess
.AllAccess, rootDir).Assert();
2311
FileIOPermissionAccess
.AllAccess, GetRootDir(scope));
2323
FileIOPermissionAccess
.AllAccess, GetRootDir(scope));
2332
FileIOPermissionAccess
.AllAccess, GetRootDir(scope));
2449
new FileIOPermission(
FileIOPermissionAccess
.Read, demandPath, false, false).Demand();
system\io\isolatedstorage\isolatedstoragefilestream.cs (1)
164
new FileIOPermission(
FileIOPermissionAccess
.AllAccess,
system\io\longpath.cs (19)
198
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Read, fullSourceFileName, false, false);
200
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Write, fullDestFileName, false, false);
261
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Write, fullPath, false, false);
301
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Read, path, false, false );
329
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Read, fullPath, false, false);
350
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Read, fullPath, false, false);
370
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Read, fullPath, false, false);
400
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Write |
FileIOPermissionAccess
.Read, fullSourceFileName, false, false);
402
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Write, fullDestFileName, false, false);
423
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Read, fullPath, false, false);
459
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Read, demandDir, false, false);
531
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Write, control, securityList, false, false);
588
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.PathDiscovery, GetDemandDir(name, true), false, false);
640
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Write |
FileIOPermissionAccess
.Read, sourcePath, false, false);
641
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Write, destPath, false, false);
692
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Write, demandPath, false, false);
914
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Read, demandPath, false, false);
system\io\path.cs (3)
335
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.PathDiscovery, fullPath, false, false);
347
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.PathDiscovery, fullPath, false, false);
1149
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.Write, path);
system\reflection\assembly.cs (13)
587
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery |
FileIOPermissionAccess
.Read, path).Demand();
609
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery |
FileIOPermissionAccess
.Read, path).Demand();
1859
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery |
FileIOPermissionAccess
.Read , urlString.GetFileName() ).Demand();
2385
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, location ).Demand();
2606
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, urlString.GetFileName() ).Demand();
2778
FileIOPermissionAccess
access =
FileIOPermissionAccess
.PathDiscovery;
2784
access =
FileIOPermissionAccess
.Read;
2787
access =
FileIOPermissionAccess
.PathDiscovery |
FileIOPermissionAccess
.Read;
system\reflection\assemblyname.cs (1)
212
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, fullPath ).Demand();
system\reflection\emit\assemblybuilder.cs (7)
1541
new FileIOPermission(
FileIOPermissionAccess
.Read, strFullFileName).Demand();
1847
new FileIOPermission(
FileIOPermissionAccess
.Write |
FileIOPermissionAccess
.Append, assemblyFileName).Demand();
1951
new FileIOPermission(
FileIOPermissionAccess
.Write |
FileIOPermissionAccess
.Append, strModFileName).Demand();
2041
new FileIOPermission(
FileIOPermissionAccess
.Write |
FileIOPermissionAccess
.Append, tempRes.m_strFullFileName).Demand();
system\reflection\emit\modulebuilder.cs (2)
1005
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, fullyQualifiedName ).Demand();
1442
new FileIOPermission(
FileIOPermissionAccess
.Read, strFullFileName).Demand();
system\reflection\module.cs (1)
1107
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, fullyQualifiedName ).Demand();
system\runtime\interopservices\runtimeenvironment.cs (2)
101
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, dir).Demand();
122
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, path).Demand();
system\runtime\remoting\configuration.cs (1)
321
new FileIOPermission(
FileIOPermissionAccess
.Read, longFileName).Assert();
system\security\accesscontrol\filesecurity.cs (5)
440
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.NoAccess, AccessControlActions.Change, fullPath);
461
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.NoAccess, AccessControlActions.Change, fullPath);
644
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.NoAccess, AccessControlActions.View, fullPath, checkForDuplicates: false, needFullPath: false);
659
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.NoAccess, AccessControlActions.View, fullPath);
681
FileIOPermission.QuickDemand(
FileIOPermissionAccess
.NoAccess, AccessControlActions.View, fullPath, checkForDuplicates: false, needFullPath: false);
system\security\cryptography\cryptoconfig.cs (1)
917
new FileIOPermission(
FileIOPermissionAccess
.Read, machineConfigFile).Assert();
system\security\cryptography\x509certificates\x509certificate.cs (1)
828
new FileIOPermission (
FileIOPermissionAccess
.Read, fullPath).Demand();
system\security\permissions\fileiopermission.cs (62)
71
public FileIOPermission(
FileIOPermissionAccess
access, String path)
80
public FileIOPermission(
FileIOPermissionAccess
access, String[] pathList)
89
public FileIOPermission(
FileIOPermissionAccess
access, AccessControlActions control, String path)
98
public FileIOPermission(
FileIOPermissionAccess
access, AccessControlActions control, String[] pathList)
105
internal FileIOPermission(
FileIOPermissionAccess
access, String[] pathList, bool checkForDuplicates, bool needFullPath)
114
internal FileIOPermission(
FileIOPermissionAccess
access, AccessControlActions control, String[] pathList, bool checkForDuplicates, bool needFullPath)
122
public void SetPathList(
FileIOPermissionAccess
access, String path)
132
public void SetPathList(
FileIOPermissionAccess
access, String[] pathList)
137
internal void SetPathList(
FileIOPermissionAccess
access,
144
internal void SetPathList(
FileIOPermissionAccess
access, AccessControlActions control, String[] pathList, bool checkForDuplicates)
148
if ((access &
FileIOPermissionAccess
.Read) != 0)
151
if ((access &
FileIOPermissionAccess
.Write) != 0)
154
if ((access &
FileIOPermissionAccess
.Append) != 0)
157
if ((access &
FileIOPermissionAccess
.PathDiscovery) != 0)
180
public void AddPathList(
FileIOPermissionAccess
access, String path)
191
public void AddPathList(
FileIOPermissionAccess
access, String[] pathList)
197
internal void AddPathList(
FileIOPermissionAccess
access, String[] pathListOrig, bool checkForDuplicates, bool needFullPath, bool copyPathList)
203
internal void AddPathList(
FileIOPermissionAccess
access, AccessControlActions control, String[] pathListOrig, bool checkForDuplicates, bool needFullPath, bool copyPathList)
241
if ((access &
FileIOPermissionAccess
.Read) != 0)
250
if ((access &
FileIOPermissionAccess
.Write) != 0)
259
if ((access &
FileIOPermissionAccess
.Append) != 0)
268
if ((access &
FileIOPermissionAccess
.PathDiscovery) != 0)
299
public String[] GetPathList(
FileIOPermissionAccess
access)
304
if (AccessIsSet(access,
FileIOPermissionAccess
.Read))
313
if (AccessIsSet(access,
FileIOPermissionAccess
.Write))
322
if (AccessIsSet(access,
FileIOPermissionAccess
.Append))
331
if (AccessIsSet(access,
FileIOPermissionAccess
.PathDiscovery))
346
public
FileIOPermissionAccess
AllLocalFiles
351
return
FileIOPermissionAccess
.AllAccess;
353
FileIOPermissionAccess
access =
FileIOPermissionAccess
.NoAccess;
357
access |=
FileIOPermissionAccess
.Read;
362
access |=
FileIOPermissionAccess
.Write;
367
access |=
FileIOPermissionAccess
.Append;
372
access |=
FileIOPermissionAccess
.PathDiscovery;
380
if ((value &
FileIOPermissionAccess
.Read) != 0)
393
if ((value &
FileIOPermissionAccess
.Write) != 0)
406
if ((value &
FileIOPermissionAccess
.Append) != 0)
419
if ((value &
FileIOPermissionAccess
.PathDiscovery) != 0)
435
public
FileIOPermissionAccess
AllFiles
440
return
FileIOPermissionAccess
.AllAccess;
442
FileIOPermissionAccess
access =
FileIOPermissionAccess
.NoAccess;
446
access |=
FileIOPermissionAccess
.Read;
451
access |=
FileIOPermissionAccess
.Write;
456
access |=
FileIOPermissionAccess
.Append;
461
access |=
FileIOPermissionAccess
.PathDiscovery;
469
if (value ==
FileIOPermissionAccess
.AllAccess)
475
if ((value &
FileIOPermissionAccess
.Read) != 0)
488
if ((value &
FileIOPermissionAccess
.Write) != 0)
501
if ((value &
FileIOPermissionAccess
.Append) != 0)
514
if ((value &
FileIOPermissionAccess
.PathDiscovery) != 0)
531
private static void VerifyAccess(
FileIOPermissionAccess
access)
533
if ((access & ~
FileIOPermissionAccess
.AllAccess) != 0)
538
private static void ExclusiveAccess(
FileIOPermissionAccess
access)
540
if (access ==
FileIOPermissionAccess
.NoAccess)
601
private static bool AccessIsSet(
FileIOPermissionAccess
access,
FileIOPermissionAccess
question)
1005
internal static void QuickDemand(
FileIOPermissionAccess
access, string fullPath, bool checkForDuplicates = false, bool needFullPath = true)
1028
internal static void QuickDemand(
FileIOPermissionAccess
access, string[] fullPathList, bool checkForDuplicates = false, bool needFullPath = true)
1054
internal static void QuickDemand(
FileIOPermissionAccess
access, AccessControlActions control, string fullPath, bool checkForDuplicates = false, bool needFullPath = true)
1067
internal static void QuickDemand(
FileIOPermissionAccess
access, AccessControlActions control, string[] fullPathList, bool checkForDuplicates = true, bool needFullPath = true)
system\security\permissions\permissionattributes.cs (12)
243
[OptionalField(VersionAdded = 2)] private
FileIOPermissionAccess
m_allLocalFiles =
FileIOPermissionAccess
.NoAccess;
244
[OptionalField(VersionAdded = 2)] private
FileIOPermissionAccess
m_allFiles =
FileIOPermissionAccess
.NoAccess;
295
public
FileIOPermissionAccess
AllFiles {
300
public
FileIOPermissionAccess
AllLocalFiles {
315
perm.SetPathList(
FileIOPermissionAccess
.Read, m_read );
317
perm.SetPathList(
FileIOPermissionAccess
.Write, m_write );
319
perm.SetPathList(
FileIOPermissionAccess
.Append, m_append );
321
perm.SetPathList(
FileIOPermissionAccess
.PathDiscovery, m_pathDiscovery );
324
perm.SetPathList(
FileIOPermissionAccess
.NoAccess, AccessControlActions.View, new String[] { m_viewAccess }, false );
326
perm.SetPathList(
FileIOPermissionAccess
.NoAccess, AccessControlActions.Change, new String[] { m_changeAccess }, false );
system\security\policy\applicationsecurityinfo.cs (2)
133
FileCodeGroup fileCodeGroup = new FileCodeGroup(new AllMembershipCondition(),
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.PathDiscovery);
system\security\policy\filecodegroup.cs (7)
28
private
FileIOPermissionAccess
m_access;
32
public FileCodeGroup(IMembershipCondition membershipCondition,
FileIOPermissionAccess
access)
168
return Environment.GetResourceString("FileCodeGroup_PermissionSet", XMLUtil.BitFieldEnumToString(typeof(
FileIOPermissionAccess
), m_access));
179
element.AddAttribute("Access", XMLUtil.BitFieldEnumToString(typeof(
FileIOPermissionAccess
), m_access));
185
m_access = (
FileIOPermissionAccess
) Enum.Parse(typeof(
FileIOPermissionAccess
), access);
187
m_access =
FileIOPermissionAccess
.NoAccess;
system\security\policy\policylevel.cs (2)
1020
CodeGroup intranetFileCode = new FileCodeGroup(new AllMembershipCondition(),
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.PathDiscovery);
system\security\securitymanager.cs (4)
116
new FileCodeGroup(new AllMembershipCondition(),
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.PathDiscovery).Resolve(evidence);
183
perm.AddPathList(
FileIOPermissionAccess
.Read, fullPath );
184
perm.AddPathList(
FileIOPermissionAccess
.Write, fullPath );
system\timezoneinfo.cs (1)
2570
[FileIOPermissionAttribute(SecurityAction.Assert, AllLocalFiles =
FileIOPermissionAccess
.PathDiscovery)]
PresentationCore (17)
Core\CSharp\MS\Internal\FontCache\FontSource.cs (1)
192
new FileIOPermission(
FileIOPermissionAccess
.Read, _fontUri.LocalPath).Assert(); //Blessed Assert
Core\CSharp\MS\Internal\FontCache\FontSourceCollection.cs (2)
176
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.PathDiscovery,
Core\CSharp\System\Windows\Media\Imaging\BitmapDecoder.cs (1)
1467
(new FileIOPermission(
FileIOPermissionAccess
.Read, uri.LocalPath)).Assert(); // BlessedAssert
Core\CSharp\System\Windows\Media\MediaPlayerState.cs (3)
997
new FileIOPermission(
FileIOPermissionAccess
.Read, appBase.LocalPath).Assert();// BlessedAssert
1082
(new FileIOPermission(
FileIOPermissionAccess
.Read, toOpen)).Demand();
1100
(new FileIOPermission(
FileIOPermissionAccess
.Read, toOpen)).Demand();
Shared\MS\Internal\SecurityHelper.cs (10)
452
(new FileIOPermission(
FileIOPermissionAccess
.Read, uri.LocalPath)).Demand();
493
(new FileIOPermission(
FileIOPermissionAccess
.Read, contentUri.LocalPath)).Demand();
547
permobj.AllFiles =
FileIOPermissionAccess
.Write|
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.PathDiscovery;
670
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, path).Demand();
733
return new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, uri.LocalPath);
755
return new FileIOPermission(
FileIOPermissionAccess
.Read, uri.LocalPath);
1111
new FileIOPermission(
FileIOPermissionAccess
.Read, fileName).Demand();
1341
(new FileIOPermission(
FileIOPermissionAccess
.Read, toOpen)).Demand();
PresentationFramework (19)
src\Framework\Microsoft\Win32\FileDialog.cs (2)
1236
(new FileIOPermission(
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.PathDiscovery, fileName)).Assert();
src\Framework\Microsoft\Win32\OpenFileDialog.cs (2)
111
(new FileIOPermission(
FileIOPermissionAccess
.Read, filename)).Assert();
168
(new FileIOPermission(
FileIOPermissionAccess
.Read, filename)).Assert();
src\Framework\Microsoft\Win32\SaveFileDialog.cs (3)
108
(new FileIOPermission(
FileIOPermissionAccess
.Append |
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.Write,
src\Framework\MS\Internal\AppModel\ContentFilePart.cs (1)
167
FileIOPermission filePermission = new FileIOPermission(
FileIOPermissionAccess
.Read, filename);
src\Framework\MS\Internal\AppModel\PresentationAppDomainManager.cs (2)
185
(CodeGroup)new FileCodeGroup(membership,
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.PathDiscovery)
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (1)
781
filePermission.AllLocalFiles =
FileIOPermissionAccess
.Write;
src\Framework\System\Windows\Documents\NLGSpellerInterop.cs (2)
368
new FileIOPermission(
FileIOPermissionAccess
.Read, trustedFolder).Assert();
1107
FileIOPermission fileIOPermission = new FileIOPermission(
FileIOPermissionAccess
.Read, lexiconFilePath);
src\Framework\System\Windows\Documents\WinRTSpellerInterop.cs (6)
63
fiop.AllLocalFiles =
FileIOPermissionAccess
.PathDiscovery;
248
new FileIOPermission(
FileIOPermissionAccess
.AllAccess, filePath).Demand();
295
new FileIOPermission(
FileIOPermissionAccess
.Read, trustedFolder).Assert();
500
new FileIOPermission(
FileIOPermissionAccess
.Read, lexiconFilePath).Demand();
609
new FileIOPermission(
FileIOPermissionAccess
.AllAccess, filePath).Demand();
702
new FileIOPermission(
FileIOPermissionAccess
.Read, sourcePath).Demand();
System (23)
compmod\microsoft\win32\SystemEvents.cs (3)
1208
fiop.AllFiles =
FileIOPermissionAccess
.PathDiscovery |
FileIOPermissionAccess
.Read;
1272
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, executablePath).Demand();
compmod\system\codedom\compiler\TempFiles.cs (1)
217
new FileIOPermission(
FileIOPermissionAccess
.AllAccess, full).Demand();
compmod\system\componentmodel\IntSecurity.cs (1)
21
fiop.AllFiles =
FileIOPermissionAccess
.PathDiscovery;
net\System\Net\Configuration\UriSectionReader.cs (1)
60
new FileIOPermission(
FileIOPermissionAccess
.Read, configFilePath).Assert();
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (1)
146
[FileIOPermission(SecurityAction.Assert, AllFiles =
FileIOPermissionAccess
.PathDiscovery)]
security\system\security\cryptography\cryptoapi.cs (2)
3503
new FileIOPermission(
FileIOPermissionAccess
.Read, fullPath).Demand();
3568
new FileIOPermission(
FileIOPermissionAccess
.Read, fullPath).Demand();
security\system\security\cryptography\x509\x509certificate2.cs (1)
1171
new FileIOPermission (
FileIOPermissionAccess
.Read, fullPath).Demand();
services\io\system\io\FileSystemWatcher.cs (1)
967
FileIOPermission permission = new FileIOPermission(
FileIOPermissionAccess
.Read, fullPath);
services\io\system\io\RenamedEventArgs.cs (1)
51
new FileIOPermission(
FileIOPermissionAccess
.Read, Path.GetPathRoot(oldFullPath)).Demand();
services\monitoring\system\diagnosticts\FileVersionInfo.cs (3)
118
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, fileName).Demand();
419
[FileIOPermission(SecurityAction.Assert, AllFiles=
FileIOPermissionAccess
.PathDiscovery)]
455
new FileIOPermission(
FileIOPermissionAccess
.Read, fullPath).Demand();
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (1)
237
ps.AddPermission(new FileIOPermission(
FileIOPermissionAccess
.Write, tempPath));
sys\system\configuration\ConfigurationException.cs (1)
148
[FileIOPermission(SecurityAction.Assert, AllFiles=
FileIOPermissionAccess
.PathDiscovery)]
sys\system\configuration\LocalFileSettingsProvider.cs (4)
283
FileIOPermission(SecurityAction.Assert, AllFiles=
FileIOPermissionAccess
.PathDiscovery |
FileIOPermissionAccess
.Read),
507
[FileIOPermission(SecurityAction.Assert, AllFiles=
FileIOPermissionAccess
.PathDiscovery |
FileIOPermissionAccess
.Read)]
sys\system\Media\SoundPlayer.cs (2)
124
fiop.AllFiles =
FileIOPermissionAccess
.PathDiscovery;
266
FileIOPermission perm = new FileIOPermission(
FileIOPermissionAccess
.Read, localPath);
System.Activities (1)
System\Activities\Debugger\SourceLocationProvider.cs (1)
138
FileIOPermission permission = new FileIOPermission(
FileIOPermissionAccess
.Read, sourcePath);
System.AddIn (55)
System\Addin\Hosting\ActivationWorker.cs (11)
85
permissionSet.AddPermission(new FileIOPermission(
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.PathDiscovery,
87
permissionSet.AddPermission(new FileIOPermission(
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.PathDiscovery,
89
permissionSet.AddPermission(new FileIOPermission(
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.PathDiscovery,
91
permissionSet.AddPermission(new FileIOPermission(
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.PathDiscovery,
147
permission.AllLocalFiles =
FileIOPermissionAccess
.PathDiscovery;
258
permissionSet.AddPermission(new FileIOPermission(
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.PathDiscovery, dir));
System\Addin\Hosting\AddInActivator.cs (7)
322
permissionSet.AddPermission(new FileIOPermission(
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.PathDiscovery,
493
assertSet.AddPermission(new FileIOPermission(
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.PathDiscovery, hostAdapter.Location));
494
assertSet.AddPermission(new FileIOPermission(
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.PathDiscovery, contract.Location));
694
permission.AllLocalFiles =
FileIOPermissionAccess
.PathDiscovery;
System\Addin\Hosting\AddInControllerImpl.cs (4)
206
permissionSet.AddPermission(new FileIOPermission(
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.PathDiscovery,
208
permissionSet.AddPermission(new FileIOPermission(
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.PathDiscovery,
System\Addin\Hosting\AddInStore.cs (29)
86
new FileIOPermission(
FileIOPermissionAccess
.Read, pipelineRootFolderPath).Demand();
94
FileIOPermission permission = new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery |
95
FileIOPermissionAccess
.Read, pipelineRootFolderPath);
162
new FileIOPermission(
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.Write, addInsFolderPath).Demand();
197
new FileIOPermission(
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.Write, addInsFolderPath).Demand();
242
FileIOPermission permission = new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery |
243
FileIOPermissionAccess
.Read, addInsPath);
387
new FileIOPermission(
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.Write, pipelineRootFolderPath).Demand();
491
new FileIOPermission(
FileIOPermissionAccess
.Read, pipelineRootFolderPath).Demand();
523
FileIOPermission permission = new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, pipelineRootFolderPath);
596
new FileIOPermission(
FileIOPermissionAccess
.Read, pipelineRootFolderPath).Demand();
669
new FileIOPermission(
FileIOPermissionAccess
.Read, fullPath).Demand();
691
FileIOPermission permission = new FileIOPermission(
FileIOPermissionAccess
.Read, fullPath);
767
FileIOPermission permission = new FileIOPermission(
FileIOPermissionAccess
.Read, fileName);
820
FileIOPermission permission = new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery |
821
FileIOPermissionAccess
.Read, rootDir);
899
FileIOPermission permission = new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery |
900
FileIOPermissionAccess
.Read, rootDir);
993
FileIOPermission permission = new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, path);
1023
permissionSet.AddPermission(new FileIOPermission(
FileIOPermissionAccess
.AllAccess, cacheFileName));
1072
new FileIOPermission(
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.PathDiscovery, storeFileName).Assert();
1132
permission.AllFiles =
FileIOPermissionAccess
.PathDiscovery;
1259
FileIOPermission permission = new FileIOPermission(
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.PathDiscovery, directory);
1503
permission.AllFiles =
FileIOPermissionAccess
.PathDiscovery;
System\Addin\Hosting\InspectionWorker.cs (2)
212
FileIOPermission permission = new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery |
213
FileIOPermissionAccess
.Read, _pipelineRootDirectory);
System\Addin\MiniReflection\TypeInfo.cs (1)
163
permission.AllLocalFiles =
FileIOPermissionAccess
.PathDiscovery;
System\Addin\Pipeline\ContractAdapter.cs (1)
76
new FileIOPermission(
FileIOPermissionAccess
.Read, pipelineRoot).Demand();
System.Configuration (13)
System\Configuration\ClientConfigPaths.cs (2)
65
[FileIOPermission(SecurityAction.Assert, AllFiles=
FileIOPermissionAccess
.PathDiscovery |
FileIOPermissionAccess
.Read)]
System\Configuration\ClientConfigurationHost.cs (1)
66
[FileIOPermissionAttribute(SecurityAction.Assert, AllFiles =
FileIOPermissionAccess
.PathDiscovery)]
System\Configuration\ConfigurationErrorsException.cs (2)
142
[FileIOPermission(SecurityAction.Assert, AllFiles=
FileIOPermissionAccess
.PathDiscovery)]
351
[FileIOPermission(SecurityAction.Assert, AllFiles =
FileIOPermissionAccess
.PathDiscovery)]
System\Configuration\ConfigurationFileMap.cs (1)
49
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, filename).Demand();
System\Configuration\Internal\InternalConfigHost.cs (5)
69
[FileIOPermission(SecurityAction.Assert, AllFiles =
FileIOPermissionAccess
.PathDiscovery)]
164
new FileIOPermission(
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.PathDiscovery, streamName).Assert();
231
new FileIOPermission(
FileIOPermissionAccess
.AllAccess, dir).Assert();
294
FileIOPermission fileIOPerm = new FileIOPermission(
FileIOPermissionAccess
.AllAccess, AccessControlActions.View | AccessControlActions.Change, filePaths);
System\Configuration\MgmtConfigurationRecord.cs (1)
1127
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, filepath).Demand();
System\Configuration\PropertySourceInfo.cs (1)
39
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, filename).Demand();
System.Core (5)
System\IO\__Error.cs (1)
109
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, new String[] { path }).Demand();
System\IO\LogStream.cs (4)
60
FileIOPermissionAccess
_secAccessSav;
103
_secAccessSav =
FileIOPermissionAccess
.Write;
117
internal void _Init(String path, int fAccess, FileShare share, UnsafeNativeMethods.SECURITY_ATTRIBUTES secAttrs,
FileIOPermissionAccess
secAccess,
146
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, new String[] { _fileName }).Demand();
System.Data (8)
fx\src\data\System\Data\Common\AdapterUtil.cs (3)
2066
[FileIOPermission(SecurityAction.Assert, AllFiles=
FileIOPermissionAccess
.PathDiscovery)]
2112
(new FileIOPermission(
FileIOPermissionAccess
.Read, filename)).Assert();
2124
(new FileIOPermission(
FileIOPermissionAccess
.Read, filename)).Assert(); // MDAC 62038
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (5)
516
FileIOPermissionAccess
demandPermissions;
520
demandPermissions =
FileIOPermissionAccess
.Read;
524
demandPermissions =
FileIOPermissionAccess
.Write;
531
demandPermissions =
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.Write;
System.Data.Entity (3)
System\Data\Common\EntityUtil.cs (1)
2042
[FileIOPermission(SecurityAction.Assert, AllFiles =
FileIOPermissionAccess
.PathDiscovery)]
System\Data\Metadata\MetadataCache.cs (2)
651
filePermissions = new FileIOPermission(
FileIOPermissionAccess
.Read, permissionPaths.ToArray());
746
filePermissions = new FileIOPermission(
FileIOPermissionAccess
.Read, permissionPaths.ToArray());
System.Drawing (5)
commonui\System\Drawing\Advanced\ImageCodecInfo.cs (2)
71
new System.Security.Permissions.FileIOPermission(System.Security.Permissions.
FileIOPermissionAccess
.PathDiscovery, dllName).Demand();
80
new System.Security.Permissions.FileIOPermission(System.Security.Permissions.
FileIOPermissionAccess
.PathDiscovery, value).Demand();
commonui\System\Drawing\IntSecurity.cs (3)
30
new FileIOPermission(
FileIOPermissionAccess
.Read, full).Demand();
40
new FileIOPermission(
FileIOPermissionAccess
.Write, full).Demand();
49
fiop.AllFiles =
FileIOPermissionAccess
.PathDiscovery;
System.Management (1)
Instrumentation\ManagementInstaller.cs (1)
83
FileIOPermission ioPermission = new FileIOPermission(
FileIOPermissionAccess
.Read, (string)Context.Parameters["assemblypath"]);
System.Runtime.Caching (1)
System\Caching\HostFileChangeMonitor.cs (1)
159
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, path).Demand();
System.Web (28)
Compilation\AssemblyBuilder.cs (1)
307
[FileIOPermission(SecurityAction.Assert, AllFiles =
FileIOPermissionAccess
.Read)]
Compilation\BuildManager.cs (2)
3383
new FileIOPermission(
FileIOPermissionAccess
.AllAccess, HttpRuntime.CodegenDirInternal).Assert();
3394
new FileIOPermission(
FileIOPermissionAccess
.AllAccess, HttpRuntime.CodegenDirInternal).Assert();
Configuration\HandlerFactoryCache.cs (2)
70
[FileIOPermission(SecurityAction.Assert, AllFiles =
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.PathDiscovery)]
Configuration\HttpCapabilitiesSectionHandler.cs (1)
302
fiop.AllFiles =
FileIOPermissionAccess
.PathDiscovery;
Configuration\HttpConfigurationSystem.cs (1)
273
[FileIOPermissionAttribute(SecurityAction.Assert, AllFiles=
FileIOPermissionAccess
.PathDiscovery)]
Configuration\HttpHandlerAction.cs (2)
139
[FileIOPermission(SecurityAction.Assert, AllFiles =
FileIOPermissionAccess
.Read |
FileIOPermissionAccess
.PathDiscovery)]
Configuration\WebConfigurationHost.cs (2)
489
[FileIOPermissionAttribute(SecurityAction.Assert, AllFiles=
FileIOPermissionAccess
.PathDiscovery)]
904
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, machineConfig).Demand();
DataAccess\SqlConnectionHelper.cs (1)
119
AppDomain.CurrentDomain.SetData(s_strDataDir, dataDir, new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, dataDir));
FileChangesMonitor.cs (1)
1491
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, alias).Assert();
HttpInputStream.cs (1)
223
new FileIOPermission(
FileIOPermissionAccess
.AllAccess, tempDir).Assert();
HttpRuntime.cs (4)
351
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, dataDirectory));
2563
askedPermission = new FileIOPermission(
FileIOPermissionAccess
.Read, path);
2565
askedPermission = new FileIOPermission(
FileIOPermissionAccess
.AllAccess, path);
2647
IPermission askedPermission = new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, path);
IntSecurity.cs (5)
66
_appPathDiscovery = new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, HttpRuntime.AppDomainAppPathInternal);
118
return new FileIOPermission(
FileIOPermissionAccess
.Read, filename);
123
return new FileIOPermission(
FileIOPermissionAccess
.Write |
FileIOPermissionAccess
.Append, filename);
128
return new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, path);
UI\Util.cs (3)
508
new FileIOPermission(
FileIOPermissionAccess
.Read, physicalDir).Assert();
1234
[FileIOPermission(SecurityAction.Assert, AllFiles =
FileIOPermissionAccess
.PathDiscovery)]
1265
[FileIOPermission(SecurityAction.Assert, AllFiles =
FileIOPermissionAccess
.PathDiscovery)]
Util\FileUtil.cs (2)
73
[FileIOPermission(SecurityAction.Assert, AllFiles =
FileIOPermissionAccess
.Read)]
228
[FileIOPermissionAttribute(SecurityAction.Assert, AllFiles=
FileIOPermissionAccess
.PathDiscovery)]
System.Web.Services (1)
System\Web\Services\Configuration\WsdlHelpGeneratorElement.cs (1)
177
new FileIOPermission(
FileIOPermissionAccess
.Read, fullPath).Demand();
System.Windows.Forms (26)
winforms\Managed\System\WinForms\AccessibleObject.cs (1)
438
IntSecurity.DemandFileIO(
FileIOPermissionAccess
.PathDiscovery, fileName);
winforms\Managed\System\WinForms\Application.cs (5)
387
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, executablePath).Demand();
649
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, startupPath).Demand();
1046
fiop.AllFiles =
FileIOPermissionAccess
.PathDiscovery;
1197
fiop.AllFiles =
FileIOPermissionAccess
.PathDiscovery |
FileIOPermissionAccess
.Read;
winforms\Managed\System\WinForms\ComboBox.cs (1)
259
fiop.AllFiles =
FileIOPermissionAccess
.PathDiscovery;
winforms\Managed\System\WinForms\Control.cs (3)
19846
IntSecurity.DemandFileIO(
FileIOPermissionAccess
.PathDiscovery, fileName);
20271
fiop.AllFiles =
FileIOPermissionAccess
.PathDiscovery;
20282
new FileIOPermission(
FileIOPermissionAccess
.Read, path).Assert();
winforms\Managed\System\WinForms\DataObject.cs (1)
1857
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, fullPath).Demand();
winforms\Managed\System\WinForms\FileDialog.cs (3)
247
IntSecurity.DemandFileIO(
FileIOPermissionAccess
.AllAccess, fileNames[0]);
299
IntSecurity.DemandFileIO(
FileIOPermissionAccess
.AllAccess, file);
689
new FileIOPermission(
FileIOPermissionAccess
.Read, IntSecurity.UnsafeGetFullPath(fileName)).Assert();
winforms\Managed\System\WinForms\FileDialogCustomPlacesCollection.cs (1)
25
FileIOPermission permission = new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, customPlace.Path);
winforms\Managed\System\WinForms\FolderBrowserDialog.cs (1)
135
new FileIOPermission(
FileIOPermissionAccess
.PathDiscovery, selectedPath).Demand();
winforms\Managed\System\WinForms\Form.cs (1)
4262
fiop.AllFiles =
FileIOPermissionAccess
.PathDiscovery;
winforms\Managed\System\WinForms\Help.cs (2)
352
new FileIOPermission(
FileIOPermissionAccess
.Read, localPath).Assert();
386
new FileIOPermission(
FileIOPermissionAccess
.Read, localPath).Assert();
winforms\Managed\System\WinForms\OpenFileDialog.cs (1)
158
new FileIOPermission(
FileIOPermissionAccess
.Read, IntSecurity.UnsafeGetFullPath(filename)).Assert();
winforms\Managed\System\WinForms\RichTextBox.cs (1)
379
new FileIOPermission(
FileIOPermissionAccess
.Read, path).Assert();
winforms\Managed\System\WinForms\SaveFileDialog.cs (1)
111
new FileIOPermission(
FileIOPermissionAccess
.AllAccess, IntSecurity.UnsafeGetFullPath(filename)).Assert();
winforms\Managed\System\WinForms\TextBox.cs (1)
202
fiop.AllFiles =
FileIOPermissionAccess
.PathDiscovery;
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
4311
IntSecurity.DemandFileIO(
FileIOPermissionAccess
.PathDiscovery, fileName);
winforms\Managed\System\WinForms\WinFormsSecurity.cs (2)
490
fiop.AllFiles =
FileIOPermissionAccess
.PathDiscovery;
505
internal static void DemandFileIO(
FileIOPermissionAccess
access, string fileName) {
System.Xml (1)
System\Xml\XmlSecureResolver.cs (1)
74
return new FileIOPermission(
FileIOPermissionAccess
.Read, uncDir);
WindowsBase (1)
Shared\MS\Internal\SecurityHelper.cs (1)
872
permobj.AddPathList(
FileIOPermissionAccess
.PathDiscovery, path);