PermissionSet.GetPermissionImpl Method (Type)

.NET Framework (current version)
 

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
)

Parameters

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
Show: