System.Security.Claims.ClaimsPrincipalExtensions.GetSurveyUserIdValue C# (CSharp) Méthode

GetSurveyUserIdValue() public static méthode

public static GetSurveyUserIdValue ( this principal ) : int
principal this
Résultat int
        public static int GetSurveyUserIdValue(this ClaimsPrincipal principal)
        {
            return (int)Convert.ChangeType(principal.FindFirstValue(SurveyClaimTypes.SurveyUserIdClaimType, true), typeof(int));
        }