## XPathNavigator::Matches(SharedPtr\<XPathExpression\>) method


Determina se il nodo corrente corrisponde alla [XPathExpression](../../xpathexpression/) specificata.

```cpp
virtual bool System::Xml::XPath::XPathNavigator::Matches(SharedPtr<XPathExpression> expr)
```


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| expr | SharedPtr\<XPathExpression\> | Un oggetto [XPathExpression](../../xpathexpression/) che contiene l'espressione [XPath](../../) compilata. |

### ReturnValue

**true** if the current node matches the [XPathExpression](../../xpathexpression/); otherwise, **false**.

## Vedi anche

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XPathExpression](../../xpathexpression/)
* Class [XPathNavigator](../)
* Namespace [System::Xml::XPath](../../)
* Library [Aspose.Font for C++](../../../)
## XPathNavigator::Matches(String) method


Determina se il nodo corrente corrisponde all'espressione [XPath](../../) specificata.

```cpp
virtual bool System::Xml::XPath::XPathNavigator::Matches(String xpath)
```


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| xpath | String | L'espressione [XPath](../../). |

### ReturnValue

**true** if the current node matches the specified [XPath](../../) expression; otherwise, **false**.

## Vedi anche

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