ClaimsPrincipalExtensions.GetDomainHint(ClaimsPrincipal) 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.
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.