DefaultClaimSet.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 specified claim is contained within this claim set.

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

public override bool ContainsClaim(
	Claim claim


Type: System.IdentityModel.Claims.Claim

The Claim to determine whether it exists in this collection.

Return Value

Type: System.Boolean

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

Exception Condition

claim is null.

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

.NET Framework
Available since 3.0
Return to top