Export (0) Print
Expand All

ClaimsPrincipal.HasClaim Method

.NET Framework 4.5

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method HasClaim(Predicate<Claim>) Determines whether any of the claims identities associated with this claims principal contains a claim that is matched by the specified predicate.
Public method HasClaim(String, String) Determines whether any of the claims identities associated with this claims principal contains a claim with the specified claim type and value.
Top
Show:
© 2014 Microsoft