XElement.IXmlSerializable.WriteXml(XmlWriter) XElement.IXmlSerializable.WriteXml(XmlWriter) XElement.IXmlSerializable.WriteXml(XmlWriter) Method

Definition

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);
Sub WriteXml (writer As XmlWriter) Implements IXmlSerializable.WriteXml
Parameters
writer
XmlWriter XmlWriter XmlWriter

The XmlWriter to which this object is serialized.

Implements

Remarks

This method is used internally for marshaling object graphs that contain LINQ to XML objects. For an example of serializing an object graph that contains LINQ to XML objects, see Serializing Object Graphs that Contain XElement Objects.

Applies to