PolicyLevel::AddNamedPermissionSet Method (NamedPermissionSet^)
.NET Framework (current version)
Adds a NamedPermissionSet to the current policy level.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- permSet
-
Type:
System.Security::NamedPermissionSet^
The NamedPermissionSet to add to the current policy level.
| Exception | Condition |
|---|---|
| ArgumentNullException | The permSet parameter is null. |
| ArgumentException | The permSet parameter has the same name as an existing NamedPermissionSet in the PolicyLevel. |
Named permission sets are scoped by policy level.
.NET Framework
Available since 1.1
Available since 1.1
Show: