语言

Saml2SecurityTokenHandler.WriteAttributeValue 方法

定义

写入 saml:Attribute 值。

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

参数

writer
XmlWriter

XmlWriter要写入的项。

value
String

包含要写入的属性值的字符串。

attribute
Saml2Attribute

一个 Saml2Attribute 表示其值正在写入的属性。

例外

writer 是 null。

注解

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

适用于