HasClaim Method

ClaimsPrincipal.HasClaim Method

.NET Framework (current version)
 

Determines whether any of the claims identities associated with this claims principal contains a claim that matches specified conditions.

Namespace:   System.Security.Claims
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodHasClaim(Predicate<Claim>)

Determines whether any of the claims identities associated with this claims principal contains a claim that is matched by the specified predicate.

System_CAPS_pubmethodHasClaim(String, String)

Determines whether any of the claims identities associated with this claims principal contains a claim with the specified claim type and value.

Return to top
Show:
© 2016 Microsoft