Saml2SecurityTokenHandler.CollectAttributeValues(ICollection<Saml2Attribute>) 方法

定义

使用通常声明类型、声明值类型集合特性,并使用多个值集合颁发者到单个特性。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::Saml2Attribute ^> ^ CollectAttributeValues(System::Collections::Generic::ICollection<System::IdentityModel::Tokens::Saml2Attribute ^> ^ attributes);
protected virtual System.Collections.Generic.ICollection<System.IdentityModel.Tokens.Saml2Attribute> CollectAttributeValues (System.Collections.Generic.ICollection<System.IdentityModel.Tokens.Saml2Attribute> attributes);
abstract member CollectAttributeValues : System.Collections.Generic.ICollection<System.IdentityModel.Tokens.Saml2Attribute> -> System.Collections.Generic.ICollection<System.IdentityModel.Tokens.Saml2Attribute>
override this.CollectAttributeValues : System.Collections.Generic.ICollection<System.IdentityModel.Tokens.Saml2Attribute> -> System.Collections.Generic.ICollection<System.IdentityModel.Tokens.Saml2Attribute>
Protected Overridable Function CollectAttributeValues (attributes As ICollection(Of Saml2Attribute)) As ICollection(Of Saml2Attribute)

参数

attributes
ICollection<Saml2Attribute>

包含从声明中派生的特性的类型 Saml2Attribute 的集合。A collection of type Saml2Attribute that contains the attributes generated from claims.

返回

ICollection<Saml2Attribute>

包含从输入集合中派生的特性的 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.

适用于