XmlSerializer.Serialize Method (XmlWriter, Object)
Assembly: System.Xml.Serialization (in System.Xml.Serialization.dll)
'Declaration Public Sub Serialize ( _ xmlWriter As XmlWriter, _ o As Object _ )
public void Serialize( XmlWriter xmlWriter, Object o )
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. To serialize all an object's fields and properties, both public and private, use the BinaryFormatter.
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
Supported in: Xbox 360, Windows Phone OS 7.0
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.