150 references to FileIOPermission
mscorlib (38)
system\appdomain.cs (1)
1081
permission = new
FileIOPermission
(FileIOPermissionAccess.PathDiscovery, dataDirectory);
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\environment.cs (1)
1551
new
FileIOPermission
(FileIOPermissionAccess.PathDiscovery, s).Demand();
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\isolatedstorage\isolatedstoragefile.cs (10)
1323
new
FileIOPermission
(
1345
new
FileIOPermission
(
1562
new
FileIOPermission
(
1789
m_fiop = new
FileIOPermission
(
1873
fp = new
FileIOPermission
(
1994
new
FileIOPermission
(FileIOPermissionAccess.AllAccess, rootDir).Assert();
2052
new
FileIOPermission
(FileIOPermissionAccess.AllAccess, rootDir).Assert();
2310
s_PermRoaming = new
FileIOPermission
(
2322
s_PermMachine = new
FileIOPermission
(
2331
s_PermUser = new
FileIOPermission
(
system\io\isolatedstorage\isolatedstoragefilestream.cs (1)
164
new
FileIOPermission
(FileIOPermissionAccess.AllAccess,
system\reflection\assembly.cs (6)
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();
2803
new
FileIOPermission
(access, codeBase).Demand();
system\reflection\assemblyname.cs (1)
212
new
FileIOPermission
( FileIOPermissionAccess.PathDiscovery, fullPath ).Demand();
system\reflection\emit\assemblybuilder.cs (4)
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\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\policy\filecodegroup.cs (1)
126
permSet.SetPermission(new
FileIOPermission
(m_access, System.IO.Path.GetFullPath(directory)));
PresentationCore (13)
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)
175
permissionSet.AddPermission(new
FileIOPermission
(
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 (7)
452
(new
FileIOPermission
(FileIOPermissionAccess.Read, uri.LocalPath)).Demand();
493
(new
FileIOPermission
(FileIOPermissionAccess.Read, contentUri.LocalPath)).Demand();
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 (12)
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\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 (5)
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 (12)
compmod\microsoft\win32\SystemEvents.cs (1)
1272
new
FileIOPermission
(FileIOPermissionAccess.PathDiscovery, executablePath).Demand();
compmod\system\codedom\compiler\TempFiles.cs (1)
217
new
FileIOPermission
(FileIOPermissionAccess.AllAccess, full).Demand();
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 (2)
118
new
FileIOPermission
(FileIOPermissionAccess.PathDiscovery, fileName).Demand();
455
new
FileIOPermission
(FileIOPermissionAccess.Read, fullPath).Demand();
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (1)
237
ps.AddPermission(new
FileIOPermission
(FileIOPermissionAccess.Write, tempPath));
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 (30)
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 (18)
86
new
FileIOPermission
(FileIOPermissionAccess.Read, pipelineRootFolderPath).Demand();
94
FileIOPermission permission = new
FileIOPermission
(FileIOPermissionAccess.PathDiscovery |
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 |
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 |
899
FileIOPermission permission = new
FileIOPermission
(FileIOPermissionAccess.PathDiscovery |
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();
1259
FileIOPermission permission = new
FileIOPermission
(FileIOPermissionAccess.Read | FileIOPermissionAccess.PathDiscovery, directory);
System\Addin\Hosting\InspectionWorker.cs (1)
212
FileIOPermission permission = new
FileIOPermission
(FileIOPermissionAccess.PathDiscovery |
System\Addin\Pipeline\ContractAdapter.cs (1)
76
new
FileIOPermission
(FileIOPermissionAccess.Read, pipelineRoot).Demand();
System.Configuration (5)
System\Configuration\ConfigurationFileMap.cs (1)
49
new
FileIOPermission
(FileIOPermissionAccess.PathDiscovery, filename).Demand();
System\Configuration\Internal\InternalConfigHost.cs (2)
164
new
FileIOPermission
(FileIOPermissionAccess.Read | FileIOPermissionAccess.PathDiscovery, streamName).Assert();
231
new
FileIOPermission
(FileIOPermissionAccess.AllAccess, dir).Assert();
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.Data (3)
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 (1)
541
filePerm = new
FileIOPermission
(demandPermissions, path);
System.Drawing (4)
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 (2)
30
new
FileIOPermission
(FileIOPermissionAccess.Read, full).Demand();
40
new
FileIOPermission
(FileIOPermissionAccess.Write, full).Demand();
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 (15)
Compilation\BuildManager.cs (2)
3383
new
FileIOPermission
(FileIOPermissionAccess.AllAccess, HttpRuntime.CodegenDirInternal).Assert();
3394
new
FileIOPermission
(FileIOPermissionAccess.AllAccess, HttpRuntime.CodegenDirInternal).Assert();
Configuration\WebConfigurationHost.cs (1)
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 (4)
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 (1)
508
new
FileIOPermission
(FileIOPermissionAccess.Read, physicalDir).Assert();
System.Web.Services (1)
System\Web\Services\Configuration\WsdlHelpGeneratorElement.cs (1)
177
new
FileIOPermission
(FileIOPermissionAccess.Read, fullPath).Demand();
System.Windows.Forms (13)
winforms\Managed\System\WinForms\Application.cs (2)
387
new
FileIOPermission
(FileIOPermissionAccess.PathDiscovery, executablePath).Demand();
649
new
FileIOPermission
(FileIOPermissionAccess.PathDiscovery, startupPath).Demand();
winforms\Managed\System\WinForms\Control.cs (1)
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 (1)
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\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\WinFormsSecurity.cs (1)
506
new
FileIOPermission
(access, UnsafeGetFullPath(fileName)).Demand();
System.Xml (1)
System\Xml\XmlSecureResolver.cs (1)
74
return new
FileIOPermission
(FileIOPermissionAccess.Read, uncDir);