## XPathNavigator::GetNamespace method


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

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 名称 | String | 命名空间节点的本地名称。 |

### ReturnValue

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

## 另见

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