## XPathNavigator::MoveToNamespace method


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

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| name | 字符串 | 命名空间节点的命名空间前缀。 |

### 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.Page for C++](../../../)
