共用方式為


SamlSecurityTokenHandler.WriteAttributeValue 方法

定義

寫入 saml:Attribute 值。

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

備註

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

適用於