PolicyLevel.AddNamedPermissionSet Method (NamedPermissionSet)

 

Adds a NamedPermissionSet to the current policy level.

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

public void AddNamedPermissionSet(
	NamedPermissionSet permSet
)

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
Return to top
Show: