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.

適用於