## XmlNode::GetPrefixOfNamespace method


查找当前节点作用域内给定命名空间 URI 的最近 **xmlns** 声明，并返回该声明中定义的前缀。

```cpp
virtual String System::Xml::XmlNode::GetPrefixOfNamespace(String namespaceURI)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| namespaceURI | 字符串 | 您想要查找前缀的命名空间 URI。 |

### ReturnValue

指定命名空间 URI 的前缀。

## 另见

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