Uređivanje

Dijeli putem


ClaimsPrincipalPermission.IsSubsetOf(IPermission) Method

Definition

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

public:
 virtual bool IsSubsetOf(System::Security::IPermission ^ target);
public bool IsSubsetOf (System.Security.IPermission target);
abstract member IsSubsetOf : System.Security.IPermission -> bool
override this.IsSubsetOf : System.Security.IPermission -> bool
Public Function IsSubsetOf (target As IPermission) As Boolean

Parameters

target
IPermission

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

Returns

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

Implements

Remarks

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.

Applies to