Constructs and initializes a new instance of the System.Security.Permissions.EnvironmentPermission class with the specified System.Security.Permissions.PermissionState value.
- state
- A System.Security.Permissions.PermissionState value.
Type Reason ArgumentException state is not a valid System.Security.Permissions.PermissionState value.
Note:The instance returned by this constructor has either fully restricted (PermissionState.None) or unrestricted (PermissionState.Unrestricted) access to all environment variables.
Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0