Bearbeiten

Freigeben über


DefaultClaimSet.ContainsClaim(Claim) Method

Definition

Determines whether the specified claim is contained within this claim set.

public:
 override bool ContainsClaim(System::IdentityModel::Claims::Claim ^ claim);
public override bool ContainsClaim (System.IdentityModel.Claims.Claim claim);
override this.ContainsClaim : System.IdentityModel.Claims.Claim -> bool
Public Overrides Function ContainsClaim (claim As Claim) As Boolean

Parameters

claim
Claim

The Claim to determine whether it exists in this collection.

Returns

true if the claim is contained in this claim set; otherwise false.

Exceptions

claim is null.

Remarks

To find claims that match a claim type and right, call the FindClaims method.

Applies to