## XPathNavigator::MoveToFirstNamespace() method


将 [XPathNavigator](../) 移动到当前节点的第一个命名空间节点。

```cpp
bool System::Xml::XPath::XPathNavigator::MoveToFirstNamespace()
```


### ReturnValue

**true** if the [XPathNavigator](../) is successful moving to the first namespace node; otherwise, **false**. If **false**, the position of the [XPathNavigator](../) is unchanged.

## 另见

* Class [XPathNavigator](../)
* Namespace [System::Xml::XPath](../../)
* Library [Aspose.Font for C++](../../../)
## XPathNavigator::MoveToFirstNamespace(XPathNamespaceScope) method


当在派生类中被重写时，将 [XPathNavigator](../) 移动到匹配指定的 [XPathNamespaceScope](../../xpathnamespacescope/) 的第一个命名空间节点。

```cpp
virtual bool System::Xml::XPath::XPathNavigator::MoveToFirstNamespace(XPathNamespaceScope namespaceScope)=0
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| namespaceScope | XPathNamespaceScope | 一个描述命名空间范围的 [XPathNamespaceScope](../../xpathnamespacescope/) 值。 |

### ReturnValue

**true** if the [XPathNavigator](../) is successful moving to the first namespace node; otherwise, **false**. If **false**, the position of the [XPathNavigator](../) is unchanged.

## 另见

* Enum [XPathNamespaceScope](../../xpathnamespacescope/)
* Class [XPathNavigator](../)
* Namespace [System::Xml::XPath](../../)
* Library [Aspose.Font for C++](../../../)
