Share via


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

例外狀況

writernull

備註

根據預設,方法會將值寫入為字串。

適用於