148 references to Read
mscorlib (60)
system\cfgparser.cs (1)
274
(new FileIOPermission( FileIOPermissionAccess.
Read
, System.IO.Path.GetFullPathInternal( fileName ) )).Demand();
system\io\directory.cs (1)
1251
FileIOPermission.QuickDemand(FileIOPermissionAccess.Write | FileIOPermissionAccess.
Read
, sourcePath, false, false);
system\io\file.cs (10)
164
FileIOPermission.QuickDemand(FileIOPermissionAccess.
Read
, fullSourceFileName, 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);
1258
FileIOPermission.QuickDemand(FileIOPermissionAccess.Write | FileIOPermissionAccess.
Read
, fullSourceFileName, false, false);
1334
FileIOPermission perm = new FileIOPermission(FileIOPermissionAccess.
Read
| FileIOPermissionAccess.Write, new String[] { fullSrcPath, fullDestPath });
system\io\fileinfo.cs (3)
110
FileIOPermission.QuickDemand(FileIOPermissionAccess.
Read
, fullPath, false, false);
132
FileIOPermission.QuickDemand(FileIOPermissionAccess.
Read
, FullPath, false, false);
471
FileIOPermission.QuickDemand(FileIOPermissionAccess.Write | FileIOPermissionAccess.
Read
, FullPath, false, false);
system\io\filestream.cs (1)
763
secAccess = secAccess | FileIOPermissionAccess.
Read
;
system\io\filesystemenumerable.cs (2)
700
new FileIOPermission(FileIOPermissionAccess.
Read
, new string[] { fullPath }, false, false).Demand();
729
new FileIOPermission(FileIOPermissionAccess.
Read
, new string[] { fullPath + "\\." }, false, false).Demand();
system\io\isolatedstorage\isolatedstoragefile.cs (10)
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));
999
Demand(new FileIOPermission(FileIOPermissionAccess.Write | FileIOPermissionAccess.
Read
, new String[] { sourceFileNameFullPath }, false, false));
1065
Demand(new FileIOPermission(FileIOPermissionAccess.Write | FileIOPermissionAccess.
Read
, new String[] { sourceDirectoryNameFullPath }, false, false));
2449
new FileIOPermission(FileIOPermissionAccess.
Read
, demandPath, false, false).Demand();
system\io\longpath.cs (10)
198
FileIOPermission.QuickDemand(FileIOPermissionAccess.
Read
, fullSourceFileName, 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);
423
FileIOPermission.QuickDemand(FileIOPermissionAccess.
Read
, fullPath, false, false);
459
FileIOPermission.QuickDemand(FileIOPermissionAccess.
Read
, demandDir, false, false);
640
FileIOPermission.QuickDemand(FileIOPermissionAccess.Write | FileIOPermissionAccess.
Read
, sourcePath, false, false);
914
FileIOPermission.QuickDemand(FileIOPermissionAccess.
Read
, demandPath, false, false);
system\reflection\assembly.cs (5)
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();
2784
access = FileIOPermissionAccess.
Read
;
2787
access = FileIOPermissionAccess.PathDiscovery | FileIOPermissionAccess.
Read
;
system\reflection\emit\assemblybuilder.cs (1)
1541
new FileIOPermission(FileIOPermissionAccess.
Read
, strFullFileName).Demand();
system\reflection\emit\modulebuilder.cs (1)
1442
new FileIOPermission(FileIOPermissionAccess.
Read
, strFullFileName).Demand();
system\runtime\remoting\configuration.cs (1)
321
new FileIOPermission(FileIOPermissionAccess.
Read
, longFileName).Assert();
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 (7)
148
if ((access & FileIOPermissionAccess.
Read
) != 0)
241
if ((access & FileIOPermissionAccess.
Read
) != 0)
304
if (AccessIsSet(access, FileIOPermissionAccess.
Read
))
357
access |= FileIOPermissionAccess.
Read
;
380
if ((value & FileIOPermissionAccess.
Read
) != 0)
446
access |= FileIOPermissionAccess.
Read
;
475
if ((value & FileIOPermissionAccess.
Read
) != 0)
system\security\permissions\permissionattributes.cs (1)
315
perm.SetPathList( FileIOPermissionAccess.
Read
, m_read );
system\security\policy\applicationsecurityinfo.cs (1)
133
FileCodeGroup fileCodeGroup = new FileCodeGroup(new AllMembershipCondition(), FileIOPermissionAccess.
Read
| FileIOPermissionAccess.PathDiscovery);
system\security\policy\policylevel.cs (1)
1020
CodeGroup intranetFileCode = new FileCodeGroup(new AllMembershipCondition(), FileIOPermissionAccess.
Read
| FileIOPermissionAccess.PathDiscovery);
system\security\securitymanager.cs (2)
116
new FileCodeGroup(new AllMembershipCondition(), FileIOPermissionAccess.
Read
| FileIOPermissionAccess.PathDiscovery).Resolve(evidence);
183
perm.AddPathList( FileIOPermissionAccess.
Read
, fullPath );
PresentationCore (12)
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 (1)
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 (6)
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;
755
return new FileIOPermission(FileIOPermissionAccess.
Read
, uri.LocalPath);
1111
new FileIOPermission(FileIOPermissionAccess.
Read
, fileName).Demand();
1341
(new FileIOPermission(FileIOPermissionAccess.
Read
, toOpen)).Demand();
PresentationFramework (11)
src\Framework\Microsoft\Win32\FileDialog.cs (1)
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 (1)
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 (1)
185
(CodeGroup)new FileCodeGroup(membership, FileIOPermissionAccess.
Read
| FileIOPermissionAccess.PathDiscovery)
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 (3)
295
new FileIOPermission(FileIOPermissionAccess.
Read
, trustedFolder).Assert();
500
new FileIOPermission(FileIOPermissionAccess.
Read
, lexiconFilePath).Demand();
702
new FileIOPermission(FileIOPermissionAccess.
Read
, sourcePath).Demand();
System (11)
compmod\microsoft\win32\SystemEvents.cs (1)
1208
fiop.AllFiles = FileIOPermissionAccess.PathDiscovery | FileIOPermissionAccess.
Read
;
net\System\Net\Configuration\UriSectionReader.cs (1)
60
new FileIOPermission(FileIOPermissionAccess.
Read
, configFilePath).Assert();
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 (1)
455
new FileIOPermission(FileIOPermissionAccess.
Read
, fullPath).Demand();
sys\system\configuration\LocalFileSettingsProvider.cs (2)
283
FileIOPermission(SecurityAction.Assert, AllFiles=FileIOPermissionAccess.PathDiscovery | FileIOPermissionAccess.
Read
),
507
[FileIOPermission(SecurityAction.Assert, AllFiles=FileIOPermissionAccess.PathDiscovery | FileIOPermissionAccess.
Read
)]
sys\system\Media\SoundPlayer.cs (1)
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 (27)
System\Addin\Hosting\ActivationWorker.cs (5)
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,
258
permissionSet.AddPermission(new FileIOPermission(FileIOPermissionAccess.
Read
| FileIOPermissionAccess.PathDiscovery, dir));
System\Addin\Hosting\AddInActivator.cs (3)
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));
System\Addin\Hosting\AddInControllerImpl.cs (2)
206
permissionSet.AddPermission(new FileIOPermission(FileIOPermissionAccess.
Read
| FileIOPermissionAccess.PathDiscovery,
208
permissionSet.AddPermission(new FileIOPermission(FileIOPermissionAccess.
Read
| FileIOPermissionAccess.PathDiscovery,
System\Addin\Hosting\AddInStore.cs (15)
86
new FileIOPermission(FileIOPermissionAccess.
Read
, pipelineRootFolderPath).Demand();
95
FileIOPermissionAccess.
Read
, pipelineRootFolderPath);
162
new FileIOPermission(FileIOPermissionAccess.
Read
| FileIOPermissionAccess.Write, addInsFolderPath).Demand();
197
new FileIOPermission(FileIOPermissionAccess.
Read
| FileIOPermissionAccess.Write, addInsFolderPath).Demand();
243
FileIOPermissionAccess.
Read
, addInsPath);
387
new FileIOPermission(FileIOPermissionAccess.
Read
| FileIOPermissionAccess.Write, pipelineRootFolderPath).Demand();
491
new FileIOPermission(FileIOPermissionAccess.
Read
, pipelineRootFolderPath).Demand();
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);
821
FileIOPermissionAccess.
Read
, rootDir);
900
FileIOPermissionAccess.
Read
, rootDir);
1072
new FileIOPermission(FileIOPermissionAccess.
Read
| FileIOPermissionAccess.PathDiscovery, storeFileName).Assert();
1259
FileIOPermission permission = new FileIOPermission(FileIOPermissionAccess.
Read
| FileIOPermissionAccess.PathDiscovery, directory);
System\Addin\Hosting\InspectionWorker.cs (1)
213
FileIOPermissionAccess.
Read
, _pipelineRootDirectory);
System\Addin\Pipeline\ContractAdapter.cs (1)
76
new FileIOPermission(FileIOPermissionAccess.
Read
, pipelineRoot).Demand();
System.Configuration (2)
System\Configuration\ClientConfigPaths.cs (1)
65
[FileIOPermission(SecurityAction.Assert, AllFiles=FileIOPermissionAccess.PathDiscovery | FileIOPermissionAccess.
Read
)]
System\Configuration\Internal\InternalConfigHost.cs (1)
164
new FileIOPermission(FileIOPermissionAccess.
Read
| FileIOPermissionAccess.PathDiscovery, streamName).Assert();
System.Data (4)
fx\src\data\System\Data\Common\AdapterUtil.cs (2)
2112
(new FileIOPermission(FileIOPermissionAccess.
Read
, filename)).Assert();
2124
(new FileIOPermission(FileIOPermissionAccess.
Read
, filename)).Assert(); // MDAC 62038
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (2)
520
demandPermissions = FileIOPermissionAccess.
Read
;
531
demandPermissions = FileIOPermissionAccess.
Read
| FileIOPermissionAccess.Write;
System.Data.Entity (2)
System\Data\Metadata\MetadataCache.cs (2)
651
filePermissions = new FileIOPermission(FileIOPermissionAccess.
Read
, permissionPaths.ToArray());
746
filePermissions = new FileIOPermission(FileIOPermissionAccess.
Read
, permissionPaths.ToArray());
System.Drawing (1)
commonui\System\Drawing\IntSecurity.cs (1)
30
new FileIOPermission(FileIOPermissionAccess.
Read
, full).Demand();
System.Management (1)
Instrumentation\ManagementInstaller.cs (1)
83
FileIOPermission ioPermission = new FileIOPermission(FileIOPermissionAccess.
Read
, (string)Context.Parameters["assemblypath"]);
System.Web (7)
Compilation\AssemblyBuilder.cs (1)
307
[FileIOPermission(SecurityAction.Assert, AllFiles = FileIOPermissionAccess.
Read
)]
Configuration\HandlerFactoryCache.cs (1)
70
[FileIOPermission(SecurityAction.Assert, AllFiles = FileIOPermissionAccess.
Read
| FileIOPermissionAccess.PathDiscovery)]
Configuration\HttpHandlerAction.cs (1)
139
[FileIOPermission(SecurityAction.Assert, AllFiles = FileIOPermissionAccess.
Read
| FileIOPermissionAccess.PathDiscovery)]
HttpRuntime.cs (1)
2563
askedPermission = new FileIOPermission(FileIOPermissionAccess.
Read
, path);
IntSecurity.cs (1)
118
return new FileIOPermission(FileIOPermissionAccess.
Read
, filename);
UI\Util.cs (1)
508
new FileIOPermission(FileIOPermissionAccess.
Read
, physicalDir).Assert();
Util\FileUtil.cs (1)
73
[FileIOPermission(SecurityAction.Assert, AllFiles = FileIOPermissionAccess.
Read
)]
System.Web.Services (1)
System\Web\Services\Configuration\WsdlHelpGeneratorElement.cs (1)
177
new FileIOPermission(FileIOPermissionAccess.
Read
, fullPath).Demand();
System.Windows.Forms (7)
winforms\Managed\System\WinForms\Application.cs (1)
1197
fiop.AllFiles = FileIOPermissionAccess.PathDiscovery | FileIOPermissionAccess.
Read
;
winforms\Managed\System\WinForms\Control.cs (1)
20282
new FileIOPermission(FileIOPermissionAccess.
Read
, path).Assert();
winforms\Managed\System\WinForms\FileDialog.cs (1)
689
new FileIOPermission(FileIOPermissionAccess.
Read
, IntSecurity.UnsafeGetFullPath(fileName)).Assert();
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();
System.Xml (1)
System\Xml\XmlSecureResolver.cs (1)
74
return new FileIOPermission(FileIOPermissionAccess.
Read
, uncDir);