This enumeration is used by System.Security.Permissions.EnvironmentPermission.
Although EnvironmentPermissionAccess.NoAccess and EnvironmentPermissionAccess.AllAccess appear in System.Security.Permissions.EnvironmentPermissionAccess, they are not valid for use as the parameter for EnvironmentPermission.GetPathList(EnvironmentPermissionAccess) because they describe no environment variable access types or all environment variable access types, respectively, and EnvironmentPermission.GetPathList(EnvironmentPermissionAccess) expects a single environment variable access type.
Member Name | Description |
---|---|
AllAccess |
EnvironmentPermissionAccess.Read and EnvironmentPermissionAccess.Write access to environment variables. EnvironmentPermissionAccess.AllAccess represents multiple System.Security.Permissions.EnvironmentPermissionAccess values and causes an ArgumentException when used as the flag parameter for the EnvironmentPermission.GetPathList(EnvironmentPermissionAccess) method, which expects a single value. |
NoAccess |
No access to environment variables. EnvironmentPermissionAccess.NoAccess represents no valid System.Security.Permissions.EnvironmentPermissionAccess values and causes an ArgumentException when used as the parameter for EnvironmentPermission.GetPathList(EnvironmentPermissionAccess), which expects a single value. |
Read |
Only read access to environment variables is specified. Changing, deleting and creating environment variables is not included in this access level. |
Write |
Only write access to environment variables is specified. Write access includes creating and deleting environment variables as well as changing existing values. Reading environment variables is not included in this access level. |