ClaimSet.ContainsClaim ClaimSet.ContainsClaim ClaimSet.ContainsClaim Method

Definition

Determines whether the ClaimSet contains the specified Claim.

Overloads

ContainsClaim(Claim) ContainsClaim(Claim) ContainsClaim(Claim)

Determines whether the ClaimSet contains the specified Claim.

ContainsClaim(Claim, IEqualityComparer<Claim>) ContainsClaim(Claim, IEqualityComparer<Claim>) ContainsClaim(Claim, IEqualityComparer<Claim>)

Determines whether the ClaimSet contains the specified Claim, by using the specified IEqualityComparer<T> object.

ContainsClaim(Claim) ContainsClaim(Claim) ContainsClaim(Claim)

Determines whether the ClaimSet contains the specified Claim.

public:
 virtual bool ContainsClaim(System::IdentityModel::Claims::Claim ^ claim);
public virtual bool ContainsClaim (System.IdentityModel.Claims.Claim claim);
abstract member ContainsClaim : System.IdentityModel.Claims.Claim -> bool
override this.ContainsClaim : System.IdentityModel.Claims.Claim -> bool

Parameters

claim
Claim Claim Claim

The Claim for which to search.

Returns

true if the specified claim is contained in the ClaimSet; otherwise false.

Remarks

To find the specified claim, call the FindClaims(String, String) method.

ContainsClaim(Claim, IEqualityComparer<Claim>) ContainsClaim(Claim, IEqualityComparer<Claim>) ContainsClaim(Claim, IEqualityComparer<Claim>)

Determines whether the ClaimSet contains the specified Claim, by using the specified IEqualityComparer<T> object.

public:
 virtual bool ContainsClaim(System::IdentityModel::Claims::Claim ^ claim, System::Collections::Generic::IEqualityComparer<System::IdentityModel::Claims::Claim ^> ^ comparer);
public virtual bool ContainsClaim (System.IdentityModel.Claims.Claim claim, System.Collections.Generic.IEqualityComparer<System.IdentityModel.Claims.Claim> comparer);
abstract member ContainsClaim : System.IdentityModel.Claims.Claim * System.Collections.Generic.IEqualityComparer<System.IdentityModel.Claims.Claim> -> bool
override this.ContainsClaim : System.IdentityModel.Claims.Claim * System.Collections.Generic.IEqualityComparer<System.IdentityModel.Claims.Claim> -> bool

Parameters

claim
Claim Claim Claim

The Claim for which to search.

comparer
IEqualityComparer<Claim>

The IEqualityComparer<T> object used to make the comparison.

Returns

true if the specified claim is contained in the ClaimSet; otherwise false.

Remarks

To find the specified claim, call the FindClaims(String, String) method.

Applies to