Initializes a new instance of the ZoneIdentityPermission class to either the completely unrestricted (matches all zones) or restricted (matches no zones) state.
[Visual Basic] Overloads Public Sub New( _ ByVal state As PermissionState _ ) [C#] public ZoneIdentityPermission( PermissionState state ); [C++] public: ZoneIdentityPermission( PermissionState state ); [JScript] public function ZoneIdentityPermission( state : PermissionState );
Exception Type | Condition |
---|---|
ArgumentException | if state is other than a valid PermissionState value. |
This constructor is not as useful as other constructors in this class, but it is provided as standard constructor for all permissions.
ZoneIdentityPermission Class | ZoneIdentityPermission Members | System.Security.Permissions Namespace | ZoneIdentityPermission Constructor Overload List