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


Détermine si le nœud actuel possède un attribut portant le nom local et l'URI d'espace de noms spécifiés.

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


| Paramètre | Type | Description |
| --- | --- | --- |
| localName | String | Le nom local de l'attribut à trouver. |
| namespaceURI | String | L'URI d'espace de noms de l'attribut à trouver. |

### ReturnValue

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

## Voir aussi

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


Détermine si le nœud actuel possède un attribut portant le nom spécifié.

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


| Paramètre | Type | Description |
| --- | --- | --- |
| name | String | Le nom de l'attribut à trouver. Il s'agit d'un nom qualifié. Il est comparé à la valeur **get_Name** du nœud correspondant. |

### ReturnValue

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

## Voir aussi

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