NamedPermissionSet Constructor (String^, PermissionSet^)
.NET Framework (current version)
Initializes a new instance of the NamedPermissionSet class with the specified name from a permission set.
Assembly: mscorlib (in mscorlib.dll)
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
Available since 1.1
Show: