Serialize()

XmlSerializer::Serialize(System::SharedPtr<IO::Stream>, System::SharedPtr<Object>) method

Serializes document into XML.

void System::Xml::Serialization::XmlSerializer::Serialize(System::SharedPtr<IO::Stream> stream, System::SharedPtr<Object> o)

Arguments

ParameterTypeDescription
streamSystem::SharedPtr<IO::Stream>Destination stream.
oSystem::SharedPtr<Object>Object to serialize.

XmlSerializer::Serialize(System::SharedPtr<IO::TextWriter>, System::SharedPtr<Object>) method

Serializes document into XML.

void System::Xml::Serialization::XmlSerializer::Serialize(System::SharedPtr<IO::TextWriter> textWriter, System::SharedPtr<Object> o)

Arguments

ParameterTypeDescription
textWriterSystem::SharedPtr<IO::TextWriter>Destination stream.
oSystem::SharedPtr<Object>Object to serialize.

XmlSerializer::Serialize(System::SharedPtr<XmlWriter>, System::SharedPtr<Object>) method

Serializes document into XML.

void System::Xml::Serialization::XmlSerializer::Serialize(System::SharedPtr<XmlWriter> xmlWriter, System::SharedPtr<Object> o)

Arguments

ParameterTypeDescription
xmlWriterSystem::SharedPtr<XmlWriter>Destination stream.
oSystem::SharedPtr<Object>Object to serialize.

XmlSerializer::Serialize(System::SharedPtr<IO::Stream>, System::SharedPtr<Object>, System::SharedPtr<XmlSerializerNamespaces>) method

Serializes document into XML.

void System::Xml::Serialization::XmlSerializer::Serialize(System::SharedPtr<IO::Stream> stream, System::SharedPtr<Object> o, System::SharedPtr<XmlSerializerNamespaces> namespaces)

Arguments

ParameterTypeDescription
streamSystem::SharedPtr<IO::Stream>Destination stream.
oSystem::SharedPtr<Object>Object to serialize.
namespacesSystem::SharedPtr<XmlSerializerNamespaces>Namespace storage.

XmlSerializer::Serialize(System::SharedPtr<IO::TextWriter>, System::SharedPtr<Object>, System::SharedPtr<XmlSerializerNamespaces>) method

Serializes document into XML.

void System::Xml::Serialization::XmlSerializer::Serialize(System::SharedPtr<IO::TextWriter> textWriter, System::SharedPtr<Object> o, System::SharedPtr<XmlSerializerNamespaces> namespaces)

Arguments

ParameterTypeDescription
textWriterSystem::SharedPtr<IO::TextWriter>Destination stream.
oSystem::SharedPtr<Object>Object to serialize.
namespacesSystem::SharedPtr<XmlSerializerNamespaces>Namespace storage.

XmlSerializer::Serialize(System::SharedPtr<XmlWriter>, System::SharedPtr<Object>, System::SharedPtr<XmlSerializerNamespaces>) method

Serializes document into XML.

void System::Xml::Serialization::XmlSerializer::Serialize(System::SharedPtr<XmlWriter> xmlWriter, System::SharedPtr<Object> o, System::SharedPtr<XmlSerializerNamespaces> namespaces)

Arguments

ParameterTypeDescription
xmlWriterSystem::SharedPtr<XmlWriter>Destination stream.
oSystem::SharedPtr<Object>Object to serialize.
namespacesSystem::SharedPtr<XmlSerializerNamespaces>Namespace storage.

XmlSerializer::Serialize(System::SharedPtr<XmlWriter>, System::SharedPtr<Object>, System::SharedPtr<XmlSerializerNamespaces>, String) method

Serializes document into XML.

void System::Xml::Serialization::XmlSerializer::Serialize(System::SharedPtr<XmlWriter> xmlWriter, System::SharedPtr<Object> o, System::SharedPtr<XmlSerializerNamespaces> namespaces, String encodingStyle)

Arguments

ParameterTypeDescription
xmlWriterSystem::SharedPtr<XmlWriter>Destination stream.
oSystem::SharedPtr<Object>Object to serialize.
namespacesSystem::SharedPtr<XmlSerializerNamespaces>Namespace storage.
encodingStyleStringStyle to use while serializing object.

XmlSerializer::Serialize(System::SharedPtr<XmlWriter>, System::SharedPtr<Object>, System::SharedPtr<XmlSerializerNamespaces>, String, String) method

Serializes document into XML.

void System::Xml::Serialization::XmlSerializer::Serialize(System::SharedPtr<XmlWriter> xmlWriter, System::SharedPtr<Object> o, System::SharedPtr<XmlSerializerNamespaces> namespaces, String encodingStyle, String id)

Arguments

ParameterTypeDescription
xmlWriterSystem::SharedPtr<XmlWriter>Destination stream.
oSystem::SharedPtr<Object>Object to serialize.
namespacesSystem::SharedPtr<XmlSerializerNamespaces>Namespace storage.
encodingStyleStringStyle to use while serializing object.
idStringObject id to use while serializing it.

See Also