Freigeben über


CaseSensitiveClaimsIdentity.FindFirst(String) Method

Definition

Retrieves the first Claim where Type equals type.

public override System.Security.Claims.Claim FindFirst (string type);
override this.FindFirst : string -> System.Security.Claims.Claim
Public Overrides Function FindFirst (type As String) As Claim

Parameters

type
String

The type of the claim to match.

Returns

A Claim, null if nothing matches.

Exceptions

if type is null.

Remarks

Comparison is Ordinal.

Applies to