NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

StrongNameIdentityPermission Constructor (PermissionState)

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
);

Parameters

state
Specifies whether the permission is to be initialized to the unrestricted or restricted state. Only the restricted state is a valid initializer for this constructor.

Exceptions

Exception Type Condition
ArgumentException if state is other than a valid PermissionState value.

Remarks

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.

See Also

StrongNameIdentityPermission Class | StrongNameIdentityPermission Members | System.Security.Permissions Namespace | StrongNameIdentityPermission Constructor Overload List