NamedPermissionSet Constructor (String^, PermissionState)
.NET Framework (current version)
Initializes a new instance of the NamedPermissionSet class with the specified name in either an unrestricted or a fully restricted state.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- name
-
Type:
System::String^
The name for the new named permission set.
- state
-
Type:
System.Security.Permissions::PermissionState
One of the PermissionState values.
| Exception | Condition |
|---|---|
| ArgumentException | The name parameter is null or is an empty string (""). |
A named permission set in an unrestricted state effectively contains all permissions that implement the IUnrestrictedPermission interface. The named permission set will contain all built-in permissions as well as all custom permissions. All permissions will have an UnrestrictedPermissionState. Permissions that do not implement IUnrestrictedPermission, such as identity permissions, will be empty instances.
.NET Framework
Available since 1.1
Available since 1.1
Show: