Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XElement::IXmlSerializable::WriteXml Method (XmlWriter^)

 

Converts an object into its XML representation.

Namespace:   System.Xml.Linq
Assembly:  System.Xml.Linq (in System.Xml.Linq.dll)

private:
virtual void WriteXml(
	XmlWriter^ writer
) sealed = IXmlSerializable::WriteXml

Parameters

writer
Type: System.Xml::XmlWriter^

The XmlWriter to which this object is serialized.

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.

Universal Windows Platform
Available since 10
.NET Framework
Available since 3.5
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2017 Microsoft