SamlSecurityTokenHandler.CreateAttribute(Claim) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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 "/".