NamedPermissionSet Constructor (String, PermissionSet)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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


Type: System.String

The name for the named permission set.

Type: System.Security.PermissionSet

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

Exception Condition

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