## IXmlSerializable::WriteXml method


将当前对象序列化为 XML 表示。

```cpp
virtual void System::Xml::Serialization::IXmlSerializable::WriteXml(System::SharedPtr<System::Xml::XmlWriter> writer)=0
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 写入器 | System::SharedPtr\<System::Xml::XmlWriter\> | 用于写入当前对象的 XML 表示的流 |

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlWriter](../../../system.xml/xmlwriter/)
* Class [IXmlSerializable](../)
* Namespace [System::Xml::Serialization](../../)
* Library [Aspose.Font for C++](../../../)
