SamlSecurityTokenHandler.CreateAttribute(Claim) Method

Definition

Generates a SamlAttribute from a claim.

protected virtual Microsoft.IdentityModel.Tokens.Saml.SamlAttribute CreateAttribute (System.Security.Claims.Claim claim);
abstract member CreateAttribute : System.Security.Claims.Claim -> Microsoft.IdentityModel.Tokens.Saml.SamlAttribute
override this.CreateAttribute : System.Security.Claims.Claim -> Microsoft.IdentityModel.Tokens.Saml.SamlAttribute
Protected Overridable Function CreateAttribute (claim As Claim) As SamlAttribute

Parameters

claim
Claim

Claim from which to generate a SamlAttribute.

Returns

SamlAttribute

Exceptions

if the claim is null.

if the type of claim doesn't have "/" or only has "/" at the beginning or doesn't have any character(s) after the last "/".

Applies to