SamlSecurityTokenHandler.CollectAttributeValues 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.
Collects attributes with a common claim type, claim value type, and original issuer into a single attribute with multiple values.
protected:
virtual System::Collections::Generic::ICollection<System::IdentityModel::Tokens::SamlAttribute ^> ^ CollectAttributeValues(System::Collections::Generic::ICollection<System::IdentityModel::Tokens::SamlAttribute ^> ^ attributes);
protected virtual System.Collections.Generic.ICollection<System.IdentityModel.Tokens.SamlAttribute> CollectAttributeValues (System.Collections.Generic.ICollection<System.IdentityModel.Tokens.SamlAttribute> attributes);
abstract member CollectAttributeValues : System.Collections.Generic.ICollection<System.IdentityModel.Tokens.SamlAttribute> -> System.Collections.Generic.ICollection<System.IdentityModel.Tokens.SamlAttribute>
override this.CollectAttributeValues : System.Collections.Generic.ICollection<System.IdentityModel.Tokens.SamlAttribute> -> System.Collections.Generic.ICollection<System.IdentityModel.Tokens.SamlAttribute>
Protected Overridable Function CollectAttributeValues (attributes As ICollection(Of SamlAttribute)) As ICollection(Of SamlAttribute)
Parameters
- attributes
- ICollection<SamlAttribute>
A collection of type SamlAttribute that contains the attributes generated from claims.
Returns
A collection of SamlAttribute 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.