次の方法で共有


ClaimsPrincipalExtensions.GetDomainHint(ClaimsPrincipal) Method

Definition

Gets the domain-hint associated with an identity.

public static string? GetDomainHint (this System.Security.Claims.ClaimsPrincipal claimsPrincipal);
static member GetDomainHint : System.Security.Claims.ClaimsPrincipal -> string
<Extension()>
Public Function GetDomainHint (claimsPrincipal As ClaimsPrincipal) As String

Parameters

claimsPrincipal
ClaimsPrincipal

Identity for which to compute the domain-hint.

Returns

The domain hint for the identity, or null if it cannot be found.

Applies to