Initializes a new instance of the StrongNameIdentityPermission class to either the completely unrestricted (matches all sites) or restricted (matches no sites) state.
[Visual Basic] Overloads Public Sub New( _ ByVal state As PermissionState _ ) [C#] public StrongNameIdentityPermission( PermissionState state ); [C++] public: StrongNameIdentityPermission( PermissionState state ); [JScript] public function StrongNameIdentityPermission( state : PermissionState );
Exception Type | Condition |
---|---|
ArgumentException | if state is other than a valid PermissionState value. |
Use this constructor to create an identity permission that matches no strong names. If you subsequently set the and the property, a specific strong name identity can be represented by the object.
StrongNameIdentityPermission Class | StrongNameIdentityPermission Members | System.Security.Permissions Namespace | StrongNameIdentityPermission Constructor Overload List