## XPathNavigator::GetNamespace method


返回与指定本地名称对应的命名空间节点的值。

```cpp
virtual String System::Xml::XPath::XPathNavigator::GetNamespace(String name)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| name | 字符串 | 命名空间节点的本地名称。 |

### ReturnValue

一个 [String](../../../system/string/)，其中包含命名空间节点的值；如果未找到匹配的命名空间节点，或 [XPathNavigator](../) 未定位在元素节点上，则为 [String::Empty](../../../system/string/empty/)。

## 另见

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