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


Сериализует документ в XML.

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


| Параметр | Тип | Описание |
| --- | --- | --- |
| поток | System::SharedPtr\<IO::Stream\> | Поток назначения. |
| o | System::SharedPtr\<Object\> | [Object](../../../system/object/) для сериализации. |

## См. также

* 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


Сериализует документ в XML.

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


| Параметр | Тип | Описание |
| --- | --- | --- |
| поток | System::SharedPtr\<IO::Stream\> | Поток назначения. |
| o | System::SharedPtr\<Object\> | [Object](../../../system/object/) для сериализации. |
| пространства имён | System::SharedPtr\<XmlSerializerNamespaces\> | Хранилище пространств имён. |

## См. также

* 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


Сериализует документ в XML.

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


| Параметр | Тип | Описание |
| --- | --- | --- |
| textWriter | System::SharedPtr\<IO::TextWriter\> | Поток назначения. |
| o | System::SharedPtr\<Object\> | [Object](../../../system/object/) для сериализации. |

## См. также

* 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


Сериализует документ в XML.

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


| Параметр | Тип | Описание |
| --- | --- | --- |
| textWriter | System::SharedPtr\<IO::TextWriter\> | Поток назначения. |
| o | System::SharedPtr\<Object\> | [Object](../../../system/object/) для сериализации. |
| пространства имён | System::SharedPtr\<XmlSerializerNamespaces\> | Хранилище пространств имён. |

## См. также

* 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


Сериализует документ в XML.

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


| Параметр | Тип | Описание |
| --- | --- | --- |
| xmlWriter | System::SharedPtr\<XmlWriter\> | Поток назначения. |
| o | System::SharedPtr\<Object\> | [Object](../../../system/object/) для сериализации. |

## См. также

* 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


Сериализует документ в XML.

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


| Параметр | Тип | Описание |
| --- | --- | --- |
| xmlWriter | System::SharedPtr\<XmlWriter\> | Поток назначения. |
| o | System::SharedPtr\<Object\> | [Object](../../../system/object/) для сериализации. |
| пространства имён | System::SharedPtr\<XmlSerializerNamespaces\> | Хранилище пространств имён. |

## См. также

* 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


Сериализует документ в XML.

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


| Параметр | Тип | Описание |
| --- | --- | --- |
| xmlWriter | System::SharedPtr\<XmlWriter\> | Поток назначения. |
| o | System::SharedPtr\<Object\> | [Object](../../../system/object/) для сериализации. |
| пространства имён | System::SharedPtr\<XmlSerializerNamespaces\> | Хранилище пространств имён. |
| encodingStyle | String | Стиль, используемый при сериализации объекта. |

## См. также

* 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


Сериализует документ в XML.

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


| Параметр | Тип | Описание |
| --- | --- | --- |
| xmlWriter | System::SharedPtr\<XmlWriter\> | Поток назначения. |
| o | System::SharedPtr\<Object\> | [Object](../../../system/object/) для сериализации. |
| пространства имён | System::SharedPtr\<XmlSerializerNamespaces\> | Хранилище пространств имён. |
| encodingStyle | String | Стиль, используемый при сериализации объекта. |
| id | String | [Object](../../../system/object/) идентификатор, используемый при сериализации. |

## См. также

* 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++](../../../)
