XElement.IXmlSerializable.WriteXml(XmlWriter) 方法

定义

将对象转换为其 XML 表示形式。Converts an object into its XML representation.

 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

将此对象序列化到的 XmlWriterThe XmlWriter to which this object is serialized.

实现

注解

此方法在内部使用,用于封送包含 LINQ to XML 对象的对象图。This method is used internally for marshaling object graphs that contain LINQ to XML objects. 有关序列化包含 LINQ to XML 对象的对象图的示例,请参阅 序列化包含 system.xml.linq.xelement> 对象的对象图。For an example of serializing an object graph that contains LINQ to XML objects, see Serialize object graphs that contain XElement objects.

适用于