ClaimsPrincipalPermission::IsSubsetOf Method (IPermission^)

.NET Framework (current version)
 

Returns a value that indicates whether current permission is a subset of the specified permission.

Namespace:   System.IdentityModel.Services
Assembly:  System.IdentityModel.Services (in System.IdentityModel.Services.dll)

public:
virtual bool IsSubsetOf(
	IPermission^ target
) sealed

Parameters

target
Type: System.Security::IPermission^

The permission to be tested for the subset relationship. It must be an instance of ClaimsPrincipalPermission.

Return Value

Type: System::Boolean

true if current permission is a subset of the specified permission; otherwise, false.

The current permission is a subset of the specified permission if all of the resource-action pairs contained in the current permission are also present in the specified permission. If target is null or is not an instance of ClaimsPrincipalPermission, the IsSubsetOf returns false.

.NET Framework
Available since 4.5
Return to top
Show: