The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
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.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() | 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. |
![]() | 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. |
Show:
