Sdl.Web.Mvc/Context/ContextClaims.cs
/// <summary>
/// Get a typed value of a claim with a given property name.
/// </summary>
/// <typeparam name="T">The type of the claim value.</typeparam>
/// <param name="propertyName">The property name.</param>
/// <returns>The value of the claim.</returns>
Get a typed value of a claim with a given property name.
Get a typed value of a claim with a given property name .
public T GetClaimValue<T>(string propertyName)
        {
            object claimValue;
            _claims.TryGetValue(GetClaimName(propertyName), out claimValue);
            return CastValue<T>(claimValue);
        }
public T GetClaimValue < T > ( string propertyName ) { object claimValue ; _claims . TryGetValue ( GetClaimName ( propertyName ) , out claimValue ) ; return CastValue < T > ( claimValue ) ; }
Get a typed value of a claim with a given property name.
Get a typed value of a claim with a given property name .
The value of the claim.
The value of the claim .
propertyName
string
The property name.
The property name .
typeparam
The type of the claim value.
The type of the claim value .