Specifies access to environment variables.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
[Visual Basic] <Flags> <Serializable> Public Enum EnvironmentPermissionAccess [C#] [Flags] [Serializable] public enum EnvironmentPermissionAccess [C++] [Flags] [Serializable] __value public enum EnvironmentPermissionAccess [JScript] public Flags Serializable enum EnvironmentPermissionAccess
This enumeration is used by EnvironmentPermission.
Note Although NoAccess and AllAccess appear in EnvironmentPermissionAccess, they are not valid for use as the parameter for GetPathList because they describe no environment variable access types or all environment variable access types, respectively, and GetPathList expects a single environment variable access type.
|AllAccess||Read and Write access to environment variables. AllAccess represents multiple EnvironmentPermissionAccess values and causes an ArgumentException when used as the flag parameter for the GetPathList method, which expects a single value.||3|
|NoAccess||No access to environment variables. NoAccess represents no valid EnvironmentPermissionAccess values and causes an ArgumentException when used as the parameter for GetPathList, which expects a single value.||0|
|Read||Only read access to environment variables is specified. Changing, deleting and creating environment variables is not included in this access level.||1|
|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.||2|
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: Mscorlib (in Mscorlib.dll)