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