SamlSecurityTokenHandler.WriteAttributeValue 方法

定义

写入 saml:特性值。

protected:
 virtual void WriteAttributeValue(System::Xml::XmlWriter ^ writer, System::String ^ value, System::IdentityModel::Tokens::SamlAttribute ^ attribute);
protected virtual void WriteAttributeValue (System.Xml.XmlWriter writer, string value, System.IdentityModel.Tokens.SamlAttribute attribute);
abstract member WriteAttributeValue : System.Xml.XmlWriter * string * System.IdentityModel.Tokens.SamlAttribute -> unit
override this.WriteAttributeValue : System.Xml.XmlWriter * string * System.IdentityModel.Tokens.SamlAttribute -> unit
Protected Overridable Sub WriteAttributeValue (writer As XmlWriter, value As String, attribute As SamlAttribute)

参数

writer
XmlWriter

用于写入的 XmlWriter

value
String

一个包含要被写入的特性值的字符串。

attribute
SamlAttribute

表示要写入的值的特性的 SamlAttribute

例外

writernull

注解

默认情况下, 方法将值写入字符串。

适用于