ContainsClaim Method (Claim, IEqualityComparer(Claim))
Collapse the table of content
Expand the table of content

ClaimSet.ContainsClaim Method (Claim, IEqualityComparer<Claim>)


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

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

public virtual bool ContainsClaim(
	Claim claim,
	IEqualityComparer<Claim> comparer


Type: System.IdentityModel.Claims.Claim

The Claim for which to search.

Type: System.Collections.Generic.IEqualityComparer<Claim>

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

Return Value

Type: System.Boolean

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

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

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft