## XmlElement::HasAttribute(String, String) method


يحدد ما إذا كانت العقدة الحالية تحتوي على سمة بالاسم المحلي المحدد وURI مساحة الاسم.

```cpp
virtual bool System::Xml::XmlElement::HasAttribute(String localName, String namespaceURI)
```


| Parameter | Type | الوصف |
| --- | --- | --- |
| localName | String | الاسم المحلي للخاصية للبحث عنها. |
| namespaceURI | String | معرف URI للمساحة الاسمية للخاصية للبحث عنها. |

### ReturnValue

**true** if the current node has the specified attribute; otherwise, **false**.

## انظر أيضًا

* Class [String](../../../system/string/)
* Class [XmlElement](../)
* Namespace [System::Xml](../../)
* Library [Aspose.Page for C++](../../../)
## XmlElement::HasAttribute(String) method


يحدد ما إذا كانت العقدة الحالية تحتوي على سمة بالاسم المحدد.

```cpp
virtual bool System::Xml::XmlElement::HasAttribute(String name)
```


| Parameter | Type | الوصف |
| --- | --- | --- |
| الاسم | String | اسم الخاصية للبحث عنها. هذا اسم مؤهل. يتم مطابقته مع قيمة **get_Name** للعقدة المطابقة. |

### ReturnValue

**true** if the current node has the specified attribute; otherwise, **false**.

## انظر أيضًا

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