Export (0) Print
Expand All

IXmlSerializable Interface

Provides custom formatting for XML serialization and deserialization to control how your object is serialized or deserialized by the XmlSerializer.

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

'Declaration
Public Interface IXmlSerializable

The IXmlSerializable type exposes the following members.

  NameDescription
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetSchemaThis method is reserved and should not be used. When implementing the IXmlSerializable interface, you should return a Nothing reference (Nothing in Visual Basic) from this method.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360ReadXmlGenerates an object from its XML representation.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360WriteXmlConverts an object into its XML representation.
Top

To control the serialization, implement the ReadXml and WriteXml methods to control the XmlReader and XmlWriter classes used to read and write the XML.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

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.

Community Additions

ADD
Show:
© 2014 Microsoft