## XPathNavigator::MoveToId method


När den åsidosätts i en avledd klass flyttar den till den nod som har ett attribut av typen **ID** vars värde matchar den angivna [String](../../../system/string/).

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


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| id | String | En [String](../../../system/string/) som representerar **ID**‑värdet för den nod du vill flytta till. |

### ReturnValue

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

## Se även

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