37 references to EnvironmentPermissionAccess
mscorlib (26)
system\environment.cs (8)
362
new EnvironmentPermission(
EnvironmentPermissionAccess
.Read, "Path").Demand();
519
new EnvironmentPermission(
EnvironmentPermissionAccess
.Read, vars.ToString()).Demand();
546
new EnvironmentPermission(
EnvironmentPermissionAccess
.Read, "COMPUTERNAME").Demand();
587
new EnvironmentPermission(
EnvironmentPermissionAccess
.Read, "Path").Demand();
628
(new EnvironmentPermission(
EnvironmentPermissionAccess
.Read, variable)).Demand();
837
new EnvironmentPermission(
EnvironmentPermissionAccess
.Read, vars.ToString()).Demand();
1395
new EnvironmentPermission(
EnvironmentPermissionAccess
.Read,"UserName").Demand();
1563
new EnvironmentPermission(
EnvironmentPermissionAccess
.Read,"UserDomain").Demand();
system\security\permissions\environmentpermission.cs (16)
92
public EnvironmentPermission(
EnvironmentPermissionAccess
flag, String pathList )
97
public void SetPathList(
EnvironmentPermissionAccess
flag, String pathList )
103
if ((flag &
EnvironmentPermissionAccess
.Read) != 0)
106
if ((flag &
EnvironmentPermissionAccess
.Write) != 0)
113
public void AddPathList(
EnvironmentPermissionAccess
flag, String pathList )
117
if (FlagIsSet( flag,
EnvironmentPermissionAccess
.Read ))
124
if (FlagIsSet( flag,
EnvironmentPermissionAccess
.Write ))
133
public String GetPathList(
EnvironmentPermissionAccess
flag )
138
if (FlagIsSet( flag,
EnvironmentPermissionAccess
.Read ))
147
if (FlagIsSet( flag,
EnvironmentPermissionAccess
.Write ))
162
private void VerifyFlag(
EnvironmentPermissionAccess
flag )
164
if ((flag & ~
EnvironmentPermissionAccess
.AllAccess) != 0)
169
private void ExclusiveFlag(
EnvironmentPermissionAccess
flag )
171
if (flag ==
EnvironmentPermissionAccess
.NoAccess)
184
private bool FlagIsSet(
EnvironmentPermissionAccess
flag,
EnvironmentPermissionAccess
question )
system\security\permissions\permissionattributes.cs (2)
180
perm.SetPathList(
EnvironmentPermissionAccess
.Read, m_read );
182
perm.SetPathList(
EnvironmentPermissionAccess
.Write, m_write );
PresentationCore (5)
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\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();
System (5)
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");
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ListView.cs (1)
4793
EnvironmentPermission envPermission = new EnvironmentPermission(
EnvironmentPermissionAccess
.Read, "TEMP");