Redigera

Dela via


ClaimSet.ContainsClaim Method

Definition

Determines whether the ClaimSet contains the specified Claim.

Overloads

ContainsClaim(Claim)

Determines whether the ClaimSet contains the specified Claim.

ContainsClaim(Claim, IEqualityComparer<Claim>)

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

ContainsClaim(Claim)

Source:
ClaimSet.cs
Source:
ClaimSet.cs

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
Public Overridable Function ContainsClaim (claim As Claim) As Boolean

Parameters

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.

Applies to

ContainsClaim(Claim, IEqualityComparer<Claim>)

Source:
ClaimSet.cs
Source:
ClaimSet.cs

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
Public Overridable Function ContainsClaim (claim As Claim, comparer As IEqualityComparer(Of Claim)) As Boolean

Parameters

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