Export (0) Print
Expand All

ClaimSet.ContainsClaim Method (Claim)

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
)

Parameters

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft