Mono Class Library: System.Security.Permissions.EnvironmentPermission Overview | Members

System.Security.Permissions.EnvironmentPermission Constructor

Constructs and initializes a new instance of the System.Security.Permissions.EnvironmentPermission class with the specified System.Security.Permissions.PermissionState value.

public EnvironmentPermission (PermissionState state)

Parameters

state
A System.Security.Permissions.PermissionState value.

Exceptions

TypeReason
ArgumentExceptionstate is not a valid System.Security.Permissions.PermissionState value.

Remarks

Note:

The instance returned by this constructor has either fully restricted (PermissionState.None) or unrestricted (PermissionState.Unrestricted) access to all environment variables.

Requirements

Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0