CaseSensitiveClaimsIdentity.HasClaim(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines if a claim with type AND value is contained within this claims identity.
public override bool HasClaim (string type, string value);
override this.HasClaim : string * string -> bool
Public Overrides Function HasClaim (type As String, value As String) As Boolean
Parameters
- type
- String
The type of the claim to match.
- value
- String
The value of the claim to match.
Returns
true
if a claim is matched, false
otherwise.
Exceptions
if value
is null.
Remarks
Comparison is Ordinal for Type and Value.