NamedPermissionSet Constructor (String^, PermissionSet^)

 

Initializes a new instance of the NamedPermissionSet class with the specified name from a permission set.

Namespace:   System.Security
Assembly:  mscorlib (in mscorlib.dll)

public:
NamedPermissionSet(
	String^ name,
	PermissionSet^ permSet
)

Parameters

name
Type: System::String^

The name for the named permission set.

permSet
Type: System.Security::PermissionSet^

The permission set from which to take the value of the new named permission set.

Exception Condition
ArgumentException

The name parameter is null or is an empty string ("").

The following code example shows the use of the NamedPermissionSet constructor to create a new NamedPermissionSet object. This code example is part of a larger example provided for the NamedPermissionSet class.

.NET Framework
Available since 1.1
Return to top
Show: