Saml2SecurityTokenHandler.CollectAttributeValues Method (ICollection<Saml2Attribute>)

.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.

Collects attributes with a common claim type, claim value type, and original issuer into a single attribute with multiple values.

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

protected virtual ICollection<Saml2Attribute> CollectAttributeValues(
	ICollection<Saml2Attribute> attributes
)

Parameters

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

A collection of type Saml2Attribute that contains the attributes generated from claims.

Return Value

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

A collection of Saml2Attribute that contains attributes derived from the input collection. Attributes in the input collection that share a common claim type, claim value, and original issuer with other attributes are consolidated into a single attribute with multiple values in the output collection. Attributes in the input collection that do not share claim type, claim value, or original issuer with other attributes appear unaltered in the output collection.

.NET Framework
Available since 4.5
Return to top
Show: