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));
        }