This documentation is archived and is not being maintained.

PermissionSet Constructor

.NET Framework 1.1

Initializes a new instance of the PermissionSet class.

Overload List

Initializes a new instance of the PermissionSet class with initial values taken from the permSet parameter.

[Visual Basic] Public Sub New(PermissionSet)
[C#] public PermissionSet(PermissionSet);
[C++] public: PermissionSet(PermissionSet*);
[JScript] public function PermissionSet(PermissionSet);

Initializes a new instance of the PermissionSet class with the specified PermissionState.

[Visual Basic] Public Sub New(PermissionState)
[C#] public PermissionSet(PermissionState);
[C++] public: PermissionSet(PermissionState);
[JScript] public function PermissionSet(PermissionState);

Example

[Visual Basic, C#, C++] Note   This example shows how to use one of the overloaded versions of the PermissionSet constructor. For other examples that might be available, see the individual overload topics.
[Visual Basic] 
' Open a new PermissionSet.
Dim ps1 As New PermissionSet(PermissionState.None)

[C#] 
// Open a new PermissionSet.
PermissionSet ps1 = new PermissionSet(PermissionState.None);

[C++] 
// Open a new PermissionSet.
PermissionSet* ps1 = new PermissionSet(PermissionState::None);

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

PermissionSet Class | PermissionSet Members | System.Security Namespace

Show: