Saml2SecurityTokenHandler.AddDelegateToAttributes Method (ClaimsIdentity, ICollection<Saml2Attribute>, 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.

Adds all of the delegates associated with the subject into the attribute collection.

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

protected virtual void AddDelegateToAttributes(
	ClaimsIdentity subject,
	ICollection<Saml2Attribute> attributes,
	SecurityTokenDescriptor tokenDescriptor
)

Parameters

subject
Type: System.Security.Claims.ClaimsIdentity

The delegate of this ClaimsIdentity object will be serialized into a Saml2Attribute.

attributes
Type: System.Collections.Generic.ICollection<Saml2Attribute>

A collection of type Saml2Attribute.

tokenDescriptor
Type: System.IdentityModel.Tokens.SecurityTokenDescriptor

The token descriptor.

Exception Condition
ArgumentNullException

subject is null.

-or-

tokenDescriptor is null.

.NET Framework
Available since 4.5
Return to top
Show: