PolicyLevel::RemoveNamedPermissionSet Method (String^)

 

Removes the NamedPermissionSet with the specified name from the current policy level.

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

public:
NamedPermissionSet^ RemoveNamedPermissionSet(
	String^ name
)

Parameters

name
Type: System::String^

The name of the NamedPermissionSet to remove.

Return Value

Type: System.Security::NamedPermissionSet^

The NamedPermissionSet that was removed.

Exception Condition
ArgumentException

The name parameter is equal to the name of a reserved permission set.

-or-

A NamedPermissionSet with the specified name cannot be found.

ArgumentNullException

The name parameter is null.

.NET Framework
Available since 1.1
Return to top
Show: