PermissionSet.GetPermissionImpl Method (Type)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets a permission object of the specified type, if it exists in the set.

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

protected virtual IPermission GetPermissionImpl(
	Type permClass


Type: System.Type

The type of the permission object.

Return Value

Type: System.Security.IPermission

A copy of the permission object, of the type specified by the permClass parameter, contained in the PermissionSet, or null if none exists.

The GetPermissionImpl method is the implementation for the GetPermission method.

The method returns null for an UnrestrictedPermissionSet. Although an UnrestrictedPermissionSet effectively contains all permissions, it does not have any actual instances to return.

.NET Framework
Available since 4.0
Return to top