GacIdentityPermission Constructor (PermissionState)
.NET Framework (current version)
Initializes a new instance of the GacIdentityPermission class with fully restricted PermissionState.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- state
-
Type:
System.Security.Permissions::PermissionState
One of the PermissionState values.
| Exception | Condition |
|---|---|
| ArgumentException | state is not a valid PermissionState value. |
Note |
|---|
In the .NET Framework versions 1.0 and 1.1, identity permissions cannot have an Unrestricted permission state value. Starting with the .NET Framework version 2.0, identity permissions can have any permission state value. This means that in 2.0 and later versions, identity permissions have the same behavior as permissions that implement the IUnrestrictedPermission interface. |
.NET Framework
Available since 2.0
Available since 2.0
Show:
