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


تحدد ما إذا كانت العقدة الحالية تطابق [XPathExpression](../../xpathexpression/) المحدد.

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


| معامل | نوع | الوصف |
| --- | --- | --- |
| expr | SharedPtr\<XPathExpression\> | كائن [XPathExpression](../../xpathexpression/) يحتوي على التعبير [XPath](../../) المترجم. |

### ReturnValue

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

## انظر أيضًا

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


تحدد ما إذا كانت العقدة الحالية تطابق التعبير [XPath](../../) المحدد.

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


| معامل | نوع | الوصف |
| --- | --- | --- |
| xpath | String | التعبير [XPath](../../). |

### ReturnValue

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

## انظر أيضًا

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