Search Results for

    Show / Hide Table of Contents

    Class ClaimInfoExtensions

    Extension methods for ClaimInfo

    Inheritance
    System.Object
    ClaimInfoExtensions
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: ImageVault.Core.Common.Data
    Assembly: ImageVault.Core.dll
    Syntax
    public static class ClaimInfoExtensions

    Methods

    GetValue(IEnumerable<ClaimInfo>, String)

    Gets the claim value for the supplied claim type

    Declaration
    public static string GetValue(this IEnumerable<ClaimInfo> claimInfos, string claimType)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<ClaimInfo> claimInfos
    System.String claimType
    Returns
    Type Description
    System.String

    The first claim info value that matches the supplied claimType. If no match is found, null is returned

    ToClaim(IEnumerable<ClaimInfo>)

    Declaration
    public static IList<Claim> ToClaim(this IEnumerable<ClaimInfo> claimInfos)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<ClaimInfo> claimInfos
    Returns
    Type Description
    System.Collections.Generic.IList<System.Security.Claims.Claim>

    ToClaimInfo(IEnumerable<Claim>)

    Declaration
    public static IList<ClaimInfo> ToClaimInfo(this IEnumerable<Claim> claims)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.Security.Claims.Claim> claims
    Returns
    Type Description
    System.Collections.Generic.IList<ClaimInfo>
    In This Article
    Back to top (c) Meriworks 2002-2022