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


Serializa el documento en XML.

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| flujo | System::SharedPtr\<IO::Stream\> | Flujo de destino. |
| o | System::SharedPtr\<Object\> | [Object](../../../system/object/) a serializar. |

## Ver también

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Stream](../../../system.io/stream/)
* Class [Object](../../../system/object/)
* Class [XmlSerializer](../)
* Namespace [System::Xml::Serialization](../../)
* Library [Aspose.PDF for C++](../../../)
## XmlSerializer::Serialize(System::SharedPtr\<IO::Stream\>, System::SharedPtr\<Object\>, System::SharedPtr\<XmlSerializerNamespaces\>) method


Serializa el documento en XML.

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| flujo | System::SharedPtr\<IO::Stream\> | Flujo de destino. |
| o | System::SharedPtr\<Object\> | [Object](../../../system/object/) a serializar. |
| espacios de nombres | System::SharedPtr\<XmlSerializerNamespaces\> | Almacenamiento de Namespace. |

## Ver también

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Stream](../../../system.io/stream/)
* Class [Object](../../../system/object/)
* Class [XmlSerializerNamespaces](../../xmlserializernamespaces/)
* Class [XmlSerializer](../)
* Namespace [System::Xml::Serialization](../../)
* Library [Aspose.PDF for C++](../../../)
## XmlSerializer::Serialize(System::SharedPtr\<IO::TextWriter\>, System::SharedPtr\<Object\>) method


Serializa el documento en XML.

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| textWriter | System::SharedPtr\<IO::TextWriter\> | Flujo de destino. |
| o | System::SharedPtr\<Object\> | [Object](../../../system/object/) a serializar. |

## Ver también

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [TextWriter](../../../system.io/textwriter/)
* Class [Object](../../../system/object/)
* Class [XmlSerializer](../)
* Namespace [System::Xml::Serialization](../../)
* Library [Aspose.PDF for C++](../../../)
## XmlSerializer::Serialize(System::SharedPtr\<IO::TextWriter\>, System::SharedPtr\<Object\>, System::SharedPtr\<XmlSerializerNamespaces\>) method


Serializa el documento en XML.

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| textWriter | System::SharedPtr\<IO::TextWriter\> | Flujo de destino. |
| o | System::SharedPtr\<Object\> | [Object](../../../system/object/) a serializar. |
| espacios de nombres | System::SharedPtr\<XmlSerializerNamespaces\> | Almacenamiento de Namespace. |

## Ver también

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [TextWriter](../../../system.io/textwriter/)
* Class [Object](../../../system/object/)
* Class [XmlSerializerNamespaces](../../xmlserializernamespaces/)
* Class [XmlSerializer](../)
* Namespace [System::Xml::Serialization](../../)
* Library [Aspose.PDF for C++](../../../)
## XmlSerializer::Serialize(System::SharedPtr\<XmlWriter\>, System::SharedPtr\<Object\>) method


Serializa el documento en XML.

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| xmlWriter | System::SharedPtr\<XmlWriter\> | Flujo de destino. |
| o | System::SharedPtr\<Object\> | [Object](../../../system/object/) a serializar. |

## Ver también

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlWriter](../../../system.xml/xmlwriter/)
* Class [Object](../../../system/object/)
* Class [XmlSerializer](../)
* Namespace [System::Xml::Serialization](../../)
* Library [Aspose.PDF for C++](../../../)
## XmlSerializer::Serialize(System::SharedPtr\<XmlWriter\>, System::SharedPtr\<Object\>, System::SharedPtr\<XmlSerializerNamespaces\>) method


Serializa el documento en XML.

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| xmlWriter | System::SharedPtr\<XmlWriter\> | Flujo de destino. |
| o | System::SharedPtr\<Object\> | [Object](../../../system/object/) a serializar. |
| espacios de nombres | System::SharedPtr\<XmlSerializerNamespaces\> | Almacenamiento de Namespace. |

## Ver también

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlWriter](../../../system.xml/xmlwriter/)
* Class [Object](../../../system/object/)
* Class [XmlSerializerNamespaces](../../xmlserializernamespaces/)
* Class [XmlSerializer](../)
* Namespace [System::Xml::Serialization](../../)
* Library [Aspose.PDF for C++](../../../)
## XmlSerializer::Serialize(System::SharedPtr\<XmlWriter\>, System::SharedPtr\<Object\>, System::SharedPtr\<XmlSerializerNamespaces\>, String) method


Serializa el documento en XML.

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| xmlWriter | System::SharedPtr\<XmlWriter\> | Flujo de destino. |
| o | System::SharedPtr\<Object\> | [Object](../../../system/object/) a serializar. |
| espacios de nombres | System::SharedPtr\<XmlSerializerNamespaces\> | Almacenamiento de Namespace. |
| encodingStyle | String | Estilo a usar al serializar el objeto. |

## Ver también

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlWriter](../../../system.xml/xmlwriter/)
* Class [Object](../../../system/object/)
* Class [XmlSerializerNamespaces](../../xmlserializernamespaces/)
* Class [String](../../../system/string/)
* Class [XmlSerializer](../)
* Namespace [System::Xml::Serialization](../../)
* Library [Aspose.PDF for C++](../../../)
## XmlSerializer::Serialize(System::SharedPtr\<XmlWriter\>, System::SharedPtr\<Object\>, System::SharedPtr\<XmlSerializerNamespaces\>, String, String) method


Serializa el documento en XML.

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| xmlWriter | System::SharedPtr\<XmlWriter\> | Flujo de destino. |
| o | System::SharedPtr\<Object\> | [Object](../../../system/object/) a serializar. |
| espacios de nombres | System::SharedPtr\<XmlSerializerNamespaces\> | Almacenamiento de Namespace. |
| encodingStyle | String | Estilo a usar al serializar el objeto. |
| id | String | [Object](../../../system/object/) id a usar al serializarlo. |

## Ver también

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlWriter](../../../system.xml/xmlwriter/)
* Class [Object](../../../system/object/)
* Class [XmlSerializerNamespaces](../../xmlserializernamespaces/)
* Class [String](../../../system/string/)
* Class [XmlSerializer](../)
* Namespace [System::Xml::Serialization](../../)
* Library [Aspose.PDF for C++](../../../)
