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!

UIPermission Constructor (PermissionState)

Initializes a new UIPermission to either unrestricted or fully restricted state.

[Visual Basic]
Overloads Public Sub New( _
   ByVal state As PermissionState _
)
[C#]
public UIPermission(
   PermissionState state
);
[C++]
public: UIPermission(
   PermissionState state
);
[JScript]
public function UIPermission(
   state : PermissionState
);

Parameters

state
One of the PermissionState values

Unrestricted creates the permission in the unrestricted state- with all permission flags enabled so that it passes all checks.

None creates the empty permission- with all permission flags enabled so that it passes all checks.

Exceptions

Exception Type Condition
ArgumentException if state is not a valid value as described above.

See Also

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