PolicyLevel.GetNamedPermissionSet(String) Method

Definition

Returns the NamedPermissionSet in the current policy level with the specified name.

public:
 System::Security::NamedPermissionSet ^ GetNamedPermissionSet(System::String ^ name);
public System.Security.NamedPermissionSet GetNamedPermissionSet(string name);
member this.GetNamedPermissionSet : string -> System.Security.NamedPermissionSet
Public Function GetNamedPermissionSet (name As String) As NamedPermissionSet

Parameters

name
String

The name of the NamedPermissionSet to find.

Returns

The NamedPermissionSet in the current policy level with the specified name, if found; otherwise, null.

Exceptions

The name parameter is null.

Remarks

Caution

Code Access Security (CAS) has been deprecated across all versions of .NET Framework and .NET. Recent versions of .NET do not honor CAS annotations and produce errors if CAS-related APIs are used. Developers should seek alternative means of accomplishing security tasks.

Applies to

See also