Share via


SamlSecurityTokenHandler.CollectAttributeValues 方法

定義

將具有一般宣告型別、宣告實值型別及原始簽發者的屬性收集到有多個值的單一屬性。

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)

參數

attributes
ICollection<SamlAttribute>

包含宣告所產生之屬性的 SamlAttribute 型別集合。

傳回

包含衍生自輸入集合之屬性的 SamlAttribute 的集合。 在輸入集合中與其他屬性共用通用宣告型別、宣告或原始簽發者的屬性會在輸出集合中合併成具有多個值的單一屬性。 輸入集合中不與其他屬性共用宣告型別、宣告或原始簽發者的屬性會照舊出現在輸出集合中,沒有變更。

適用於