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.
XmlSerializer.Serialize Method (XmlWriter, Object)
July 28, 2014
Serializes the specified Object and writes the XML document to a file using the specified XmlWriter.
public void Serialize(
The Serialize method converts the public fields and read/write properties of an object into XML. It does not convert methods, indexers, private fields, or read-only properties.
In the xmlWriter parameter, specify an object that derives from the abstract XmlWriter class.
method throws an InvalidOperationException
if the XmlSerializer
object is initialized with a type parameter that contains an array of objects of type XElement
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0