System.Security.Claims.ClaimsPrincipalExtensions.GetObjectIdentifierValue C# (CSharp) 메소드

GetObjectIdentifierValue() 공개 정적인 메소드

public static GetObjectIdentifierValue ( this principal, bool throwIfNotFound = true ) : string
principal this
throwIfNotFound bool
리턴 string
        public static string GetObjectIdentifierValue(this ClaimsPrincipal principal, bool throwIfNotFound = true)
        {
            return principal.FindFirstValue(AzureADClaimTypes.ObjectId, throwIfNotFound);
        }