SamlSecurityTokenHandler.CreateAttribute Method (Claim, SecurityTokenDescriptor)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a SamlAttribute object from a claim.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

protected virtual SamlAttribute CreateAttribute(
	Claim claim,
	SecurityTokenDescriptor tokenDescriptor
)

Parameters

claim
Type: System.Security.Claims.Claim

The Claim from which to generate the SAML Attribute.

tokenDescriptor
Type: System.IdentityModel.Tokens.SecurityTokenDescriptor

The token descriptor.

Return Value

Type: System.IdentityModel.Tokens.SamlAttribute

A SamlAttribute that contains the converted claim.

Exception Condition
ArgumentNullException

claim is null.

.NET Framework
Available since 4.5
Return to top
Show: