共用方式為


SamlSecurityTokenHandler.WriteAttribute(XmlWriter, SamlAttribute) 方法

定義

寫入 <saml:Attribute> 項目。

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

參數

writer
XmlWriter

要用來寫入資料的 XmlWriter

attribute
SamlAttribute

要寫入的資料。

例外狀況

attributenull

-或-

writernull

適用於