System.Security.Claims.ClaimsPrincipalExtensions.GetTenantIdValue C# (CSharp) Метод

GetTenantIdValue() публичный статический Метод

Extension method on System.Security.Claims.ClaimsPrincipal which returns the AAD Tenant ID, if it exists.
public static GetTenantIdValue ( this principal ) : string
principal this A representing the currently signed in ASP.NET user.
Результат string
        public static string GetTenantIdValue(this ClaimsPrincipal principal)
        {
            return principal.FindFirstValue(AzureADClaimTypes.TenantId, true);
        }