Share via


XmlDeclaration.WriteTo(XmlWriter) 方法

定義

將節點儲存至指定的 XmlWriter

public:
 override void WriteTo(System::Xml::XmlWriter ^ w);
public override void WriteTo (System.Xml.XmlWriter w);
override this.WriteTo : System.Xml.XmlWriter -> unit
Public Overrides Sub WriteTo (w As XmlWriter)

參數

w
XmlWriter

要儲存的目標 XmlWriter

備註

編碼和獨立屬性的值是由 EncodingStandalone 屬性所決定。 如果未設定任一屬性,則不會寫入對應的屬性。 版本屬性一律會以 1.0 的值寫出。

適用於