共用方式為


XElement.IXmlSerializable.WriteXml(XmlWriter) 方法

定義

將物件轉換為其 XML 表示。

 virtual void System.Xml.Serialization.IXmlSerializable.WriteXml(System::Xml::XmlWriter ^ writer) = System::Xml::Serialization::IXmlSerializable::WriteXml;
void IXmlSerializable.WriteXml (System.Xml.XmlWriter writer);
abstract member System.Xml.Serialization.IXmlSerializable.WriteXml : System.Xml.XmlWriter -> unit
override this.System.Xml.Serialization.IXmlSerializable.WriteXml : System.Xml.XmlWriter -> unit
Sub WriteXml (writer As XmlWriter) Implements IXmlSerializable.WriteXml

參數

writer
XmlWriter

要序列化此物件至的 XmlWriter

實作

備註

這個方法會在內部用於封送處理包含LINQ to XML物件的物件圖形。 如需序列化包含LINQ to XML物件之物件圖形的範例,請參閱序列化包含 XElement 物件的物件圖形

適用於