Saml2SecurityTokenHandler.CreateXmlStringFromAttributes(IEnumerable<Saml2Attribute>) 方法
定义
从表示参与者的 SAML 2.0 特性的集合中生成一个 XML 格式的字符串。Builds an XML formatted string from a collection of SAML 2.0 attributes that represent the Actor.
protected:
virtual System::String ^ CreateXmlStringFromAttributes(System::Collections::Generic::IEnumerable<System::IdentityModel::Tokens::Saml2Attribute ^> ^ attributes);
protected virtual string CreateXmlStringFromAttributes (System.Collections.Generic.IEnumerable<System.IdentityModel.Tokens.Saml2Attribute> attributes);
abstract member CreateXmlStringFromAttributes : seq<System.IdentityModel.Tokens.Saml2Attribute> -> string
override this.CreateXmlStringFromAttributes : seq<System.IdentityModel.Tokens.Saml2Attribute> -> string
Protected Overridable Function CreateXmlStringFromAttributes (attributes As IEnumerable(Of Saml2Attribute)) As String
参数
- attributes
- IEnumerable<Saml2Attribute>
包含该特性的 Saml2Attribute 类型的枚举。An enumeration of type Saml2Attribute that contains the attributes.
返回
使用特性构造的格式良好的 XML 字符串。A well-formed XML string constructed using the attributes.
注解
字符串的格式为 " <Actor> <Attribute name, ns> <AttributeValue> ... </AttributeValue> ,... </Attribute>...</Actor>"The string is of the form "<Actor><Attribute name, ns><AttributeValue>...</AttributeValue>, ...</Attribute>...</Actor>"