## XPathNavigator::MoveToNamespace method


将 [XPathNavigator](../) 移动到具有指定命名空间前缀的命名空间节点。

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


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

### ReturnValue

**true** if the [XPathNavigator](../) is successful moving to the specified namespace; **false** if a matching namespace node was not found, or if the [XPathNavigator](../) is not positioned on an element node. If **false**, the position of the [XPathNavigator](../) is unchanged.

## 另见

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