Exemple #1
0
        /// <summary>
        /// Creates a display claim from a given claim type and sets default values
        /// for DisplayTag and Description properities.
        /// </summary>
        /// <param name="claimType">The unique uri identifier of a claim type</param>
        public static DisplayClaim CreateDisplayClaimFromClaimType(string claimType)
        {
            DisplayClaim displayClaim = new DisplayClaim(claimType);

            displayClaim.DisplayTag  = ClaimTagForClaimType(claimType);
            displayClaim.Description = ClaimDescriptionForClaimType(claimType);
            return(displayClaim);
        }
 /// <summary>
 /// Creates a display claim from a given claim type and sets default values
 /// for DisplayTag and Description properities.
 /// </summary>
 /// <param name="claimType">The unique uri identifier of a claim type</param>
 public static DisplayClaim CreateDisplayClaimFromClaimType(string claimType)
 {
     DisplayClaim displayClaim = new DisplayClaim(claimType);
     displayClaim.DisplayTag = ClaimTagForClaimType(claimType);
     displayClaim.Description = ClaimDescriptionForClaimType(claimType);
     return displayClaim;
 }