## XmlSerializerNamespaces::Add method


向 [Serialization::XmlSerializerNamespaces](../) 对象添加前缀和命名空间对。

```cpp
void System::Xml::Serialization::XmlSerializerNamespaces::Add(const String &prefix, const String &ns)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| prefix | const String\& | 与 XML 命名空间关联的前缀。 |
| ns | const String\& | XML 命名空间。 |

## 另见

* Class [String](../../../system/string/)
* Class [XmlSerializerNamespaces](../)
* Namespace [System::Xml::Serialization](../../)
* Library [Aspose.Page for C++](../../../)
