CaseSensitiveClaimsIdentity.HasClaim(String, String) Method

Definition

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.

Applies to