58 instantiations of EnvironmentPermission
mscorlib (28)
system\bcldebug.cs (1)
358perms.AddPermission(new EnvironmentPermission(PermissionState.Unrestricted));
system\environment.cs (16)
362new EnvironmentPermission(EnvironmentPermissionAccess.Read, "Path").Demand(); 519new EnvironmentPermission(EnvironmentPermissionAccess.Read, vars.ToString()).Demand(); 546new EnvironmentPermission(EnvironmentPermissionAccess.Read, "COMPUTERNAME").Demand(); 570(new EnvironmentPermission(PermissionState.Unrestricted)).Demand(); 587new EnvironmentPermission(EnvironmentPermissionAccess.Read, "Path").Demand(); 628(new EnvironmentPermission(EnvironmentPermissionAccess.Read, variable)).Demand(); 667(new EnvironmentPermission(PermissionState.Unrestricted)).Demand(); 837new EnvironmentPermission(EnvironmentPermissionAccess.Read, vars.ToString()).Demand(); 865(new EnvironmentPermission(PermissionState.Unrestricted)).Demand(); 895new EnvironmentPermission(PermissionState.Unrestricted).Demand(); 975new EnvironmentPermission(PermissionState.Unrestricted).Demand(); 1035new EnvironmentPermission(PermissionState.Unrestricted).Demand(); 1107new EnvironmentPermission(PermissionState.Unrestricted).Demand(); 1235new EnvironmentPermission(PermissionState.Unrestricted).Demand(); 1395new EnvironmentPermission(EnvironmentPermissionAccess.Read,"UserName").Demand(); 1563new EnvironmentPermission(EnvironmentPermissionAccess.Read,"UserDomain").Demand();
system\io\path.cs (1)
1063new EnvironmentPermission(PermissionState.Unrestricted).Demand();
system\reflection\emit\modulebuilder.cs (1)
1444new EnvironmentPermission(PermissionState.Unrestricted).Assert();
system\resources\resourcewriter.cs (1)
355permSet.AddPermission(new EnvironmentPermission(PermissionState.Unrestricted));
system\security\permissions\environmentpermission.cs (4)
276EnvironmentPermission intersectPermission = new EnvironmentPermission(PermissionState.None); 303return new EnvironmentPermission( PermissionState.Unrestricted ); 315EnvironmentPermission unionPermission = new EnvironmentPermission(PermissionState.None); 325EnvironmentPermission copy = new EnvironmentPermission(PermissionState.None);
system\security\permissions\permissionattributes.cs (2)
174return new EnvironmentPermission(PermissionState.Unrestricted); 178EnvironmentPermission perm = new EnvironmentPermission(PermissionState.None);
system\security\securitymanager.cs (1)
560new EnvironmentPermission(PermissionState.Unrestricted),
system\security\util\xmlutil.cs (1)
324return new EnvironmentPermission( permState );
PresentationCore (7)
Core\CSharp\MS\Internal\AppModel\CustomCredentialPolicy.cs (2)
68_environmentPermissionSet.AddPermission(new EnvironmentPermission(EnvironmentPermissionAccess.Read, "USERDOMAIN")); 69_environmentPermissionSet.AddPermission(new EnvironmentPermission(EnvironmentPermissionAccess.Read, "USERNAME"));
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (1)
429EnvironmentPermission environmentPermission = new EnvironmentPermission(EnvironmentPermissionAccess.Read, "Windir");
Core\CSharp\MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (1)
385permissionSet.AddPermission(new EnvironmentPermission(PermissionState.Unrestricted));
Core\CSharp\MS\Internal\WpfWebRequestHelper.cs (1)
118(new EnvironmentPermission(EnvironmentPermissionAccess.Read, "USERNAME")).Assert(); // BlessedAssert
Core\CSharp\System\Windows\Diagnostics\VisualDiagnostics.cs (1)
245new EnvironmentPermission(EnvironmentPermissionAccess.Read, environmentVariable).Assert();
Shared\MS\Internal\SecurityHelper.cs (1)
700_unrestrictedEnvironmentPermission = new EnvironmentPermission(PermissionState.Unrestricted);
PresentationFramework (3)
src\Framework\System\Windows\Application.cs (1)
2614permissions.AddPermission(new EnvironmentPermission(PermissionState.Unrestricted));
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (1)
784permissions.AddPermission(new EnvironmentPermission(PermissionState.Unrestricted));
src\Framework\System\Windows\Documents\Speller.cs (1)
1669new EnvironmentPermission(PermissionState.Unrestricted).Assert();
System (11)
compmod\system\diagnostics\TraceEventCache.cs (1)
34new EnvironmentPermission(PermissionState.Unrestricted).Demand();
compmod\system\diagnostics\TraceInternal.cs (1)
61new EnvironmentPermission(EnvironmentPermissionAccess.Read, "Path").Assert();
net\System\Net\CredentialCache.cs (2)
305new EnvironmentPermission(EnvironmentPermissionAccess.Read, "USERNAME").Demand(); 314new EnvironmentPermission(EnvironmentPermissionAccess.Read, "USERNAME").Demand();
net\System\Net\NetworkCredential.cs (2)
92m_environmentDomainNamePermission = new EnvironmentPermission(EnvironmentPermissionAccess.Read, "USERDOMAIN"); 93m_environmentUserNamePermission = new EnvironmentPermission(EnvironmentPermissionAccess.Read, "USERNAME");
services\io\system\io\FileSystemWatcher.cs (1)
947new EnvironmentPermission(PermissionState.Unrestricted).Assert();
services\monitoring\system\diagnosticts\EventLog.cs (1)
81EnvironmentPermission environmentPermission = new EnvironmentPermission(PermissionState.Unrestricted);
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (3)
190EnvironmentPermission environmentPermission = new EnvironmentPermission(PermissionState.Unrestricted); 229EnvironmentPermission environmentPermission = new EnvironmentPermission(PermissionState.Unrestricted); 236ps.AddPermission(new EnvironmentPermission(PermissionState.Unrestricted));
System.Messaging (1)
System\Messaging\AccessControlList.cs (1)
42EnvironmentPermission environmentPermission = new EnvironmentPermission(PermissionState.Unrestricted);
System.Web (2)
Hosting\HostingEnvironment.cs (1)
621new EnvironmentPermission(PermissionState.Unrestricted).Assert();
HttpRuntime.cs (1)
2282new EnvironmentPermission(PermissionState.Unrestricted).Assert();
System.Windows.Forms (4)
winforms\Managed\System\WinForms\FileDialog_Vista.cs (1)
43new EnvironmentPermission(PermissionState.Unrestricted).Assert();
winforms\Managed\System\WinForms\Form.cs (1)
4315new EnvironmentPermission(PermissionState.Unrestricted).Assert();
winforms\Managed\System\WinForms\ListView.cs (1)
4793EnvironmentPermission envPermission = new EnvironmentPermission(EnvironmentPermissionAccess.Read, "TEMP");
winforms\Managed\System\WinForms\WinFormsSecurity.cs (1)
378sensitiveSystemInformation = new EnvironmentPermission(PermissionState.Unrestricted);
System.Xml (2)
System\Xml\Serialization\Compiler.cs (2)
123perms.AddPermission(new EnvironmentPermission(PermissionState.Unrestricted)); 173perms.AddPermission(new EnvironmentPermission(PermissionState.Unrestricted));
29 references to EnvironmentPermission
mscorlib (11)
system\security\permissions\environmentpermission.cs (10)
223EnvironmentPermission operand = (EnvironmentPermission)target; 260EnvironmentPermission operand = (EnvironmentPermission)target; 276EnvironmentPermission intersectPermission = new EnvironmentPermission(PermissionState.None); 299EnvironmentPermission operand = (EnvironmentPermission)other; 315EnvironmentPermission unionPermission = new EnvironmentPermission(PermissionState.None); 325EnvironmentPermission copy = new EnvironmentPermission(PermissionState.None); 402return EnvironmentPermission.GetTokenIndex();
system\security\permissions\permissionattributes.cs (1)
178EnvironmentPermission perm = new EnvironmentPermission(PermissionState.None);
PresentationCore (7)
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (2)
429EnvironmentPermission environmentPermission = new EnvironmentPermission(EnvironmentPermissionAccess.Read, "Windir"); 437EnvironmentPermission.RevertAssert();
Core\CSharp\MS\Internal\WpfWebRequestHelper.cs (1)
120finally { EnvironmentPermission.RevertAssert(); }
Core\CSharp\System\IO\Packaging\PackageStore.cs (3)
70/// <permission cref="EnvironmentPermission"></permission> 100/// <permission cref="EnvironmentPermission"></permission> 159/// <permission cref="EnvironmentPermission"></permission>
Shared\MS\Internal\SecurityHelper.cs (1)
704static EnvironmentPermission _unrestrictedEnvironmentPermission = null;
PresentationFramework (1)
src\Framework\System\Windows\Documents\Speller.cs (1)
1677EnvironmentPermission.RevertAssert();
System (7)
net\System\Net\NetworkCredential.cs (2)
25private static volatile EnvironmentPermission m_environmentUserNamePermission; 26private static volatile EnvironmentPermission m_environmentDomainNamePermission;
services\monitoring\system\diagnosticts\EventLog.cs (1)
81EnvironmentPermission environmentPermission = new EnvironmentPermission(PermissionState.Unrestricted);
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (4)
190EnvironmentPermission environmentPermission = new EnvironmentPermission(PermissionState.Unrestricted); 196EnvironmentPermission.RevertAssert(); 229EnvironmentPermission environmentPermission = new EnvironmentPermission(PermissionState.Unrestricted); 232EnvironmentPermission.RevertAssert();
System.Messaging (2)
System\Messaging\AccessControlList.cs (2)
42EnvironmentPermission environmentPermission = new EnvironmentPermission(PermissionState.Unrestricted); 55EnvironmentPermission.RevertAssert();
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ListView.cs (1)
4793EnvironmentPermission envPermission = new EnvironmentPermission(EnvironmentPermissionAccess.Read, "TEMP");