System::Xml::Serialization::IXmlSerializable class

IXmlSerializable class

Provides custom formatting for XML serialization and deserialization. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

class IXmlSerializable : public virtual System::Object

Methods

MethodDescription
virtual GetSchema()An XmlSchema object that describes the XML representation of the object that is returned by the WriteXml() method and accepted by the ReadXml() method.
virtual ReadXml(System::SharedPtr<System::Xml::XmlReader>)Deserializes object from its XML representation.
virtual WriteXml(System::SharedPtr<System::Xml::XmlWriter>)Serializes the current object to XML representation.
virtual ~IXmlSerializable()Destructor.

See Also