ClaimSet.ContainsClaim Method (Claim)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Determines whether the ClaimSet contains the specified Claim.

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

public virtual bool ContainsClaim(
	Claim claim


Type: System.IdentityModel.Claims.Claim

The Claim for which to search.

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