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

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

public static GetSurveyUserIdValue ( this principal ) : int
principal this
Результат int
        public static int GetSurveyUserIdValue(this ClaimsPrincipal principal)
        {
            return (int)Convert.ChangeType(principal.FindFirstValue(SurveyClaimTypes.SurveyUserIdClaimType, true), typeof(int));
        }