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!

NamedPermissionSet Constructor (String, PermissionState)

Initializes a new instance of the NamedPermissionSet class with the given name in unrestricted or empty state.

[Visual Basic]
Overloads Public Sub New( _
   ByVal name As String, _
   ByVal state As PermissionState _
)
[C#]
public NamedPermissionSet(
   string name,
   PermissionState state
);
[C++]
public: NamedPermissionSet(
   String* name,
   PermissionState state
);
[JScript]
public function NamedPermissionSet(
   name : String,
   state : PermissionState
);

Parameters

name
Name for the new named permission set.
state
Specifies if the new named permission is to be set in unrestricted or empty state.

Exceptions

Exception Type Condition
ArgumentException if name string is not a valid name (such as null or empty string).

Remarks

A named permission set will effectively contain all permission objects in unrestricted state.

See Also

NamedPermissionSet Class | NamedPermissionSet Members | System.Security Namespace | NamedPermissionSet Constructor Overload List