## XPathNavigator::MoveToId method


当在派生类中被重写时，移动到具有 **ID** 类型属性且其值与指定的 [String](../../../system/string/) 匹配的节点。

```cpp
virtual bool System::Xml::XPath::XPathNavigator::MoveToId(String id)=0
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| id | String | 一个表示要移动到的节点的 **ID** 值的 [String](../../../system/string/)。 |

### ReturnValue

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

## 另见

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