Clase System::Xml::Serialization::XmlSerializer

XmlSerializer class

Realiza la serialización y deserialización de objetos hacia y desde documentos XML. Los objetos de esta clase solo deben asignarse usando la función System::MakeObject() . Nunca cree una instancia de este tipo en la pila o usando el operador new, ya que resultará en errores de tiempo de ejecución y/o fallas de aserción. Siempre envuelva esta clase en el puntero System::SmartPtr y use este puntero para pasarlo a funciones como argumento.

class XmlSerializer : public System::Object

Métodos

MétodoDescripción
virtual CanDeserialize(System::SharedPtr<XmlReader>)Comprueba si el lector específico está en estado deserializable.
Deserialize(System::SharedPtr<IO::Stream>)Deserializa el documento XML en un objeto.
Deserialize(System::SharedPtr<IO::TextReader>)Deserializa el documento XML en un objeto.
Deserialize(System::SharedPtr<XmlReader>)Deserializa el documento XML en un objeto.
Deserialize(System::SharedPtr<XmlReader>, String)Deserializa el documento XML en un objeto.
Serialize(System::SharedPtr<IO::Stream>, System::SharedPtr<Object>)Serializa el documento en XML.
Serialize(System::SharedPtr<IO::TextWriter>, System::SharedPtr<Object>)Serializa el documento en XML.
Serialize(System::SharedPtr<XmlWriter>, System::SharedPtr<Object>)Serializa el documento en XML.
Serialize(System::SharedPtr<IO::Stream>, System::SharedPtr<Object>, System::SharedPtr<XmlSerializerNamespaces>)Serializa el documento en XML.
Serialize(System::SharedPtr<IO::TextWriter>, System::SharedPtr<Object>, System::SharedPtr<XmlSerializerNamespaces>)Serializa el documento en XML.
Serialize(System::SharedPtr<XmlWriter>, System::SharedPtr<Object>, System::SharedPtr<XmlSerializerNamespaces>)Serializa el documento en XML.
Serialize(System::SharedPtr<XmlWriter>, System::SharedPtr<Object>, System::SharedPtr<XmlSerializerNamespaces>, String)Serializa el documento en XML.
Serialize(System::SharedPtr<XmlWriter>, System::SharedPtr<Object>, System::SharedPtr<XmlSerializerNamespaces>, String, String)Serializa el documento en XML.

Campos

CampoDescripción
static EncodingNamespaceCodifica el nombre del espacio de nombres.
static WsdlNamespaceRTTI.
static WsdlTypesNamespaceNombre del espacio de nombres de tipos WSDL.

Ver también