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


Determina se il nodo corrente ha un attributo con il nome locale e l'URI dello spazio dei nomi specificati.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| localName | String | Il nome locale dell'attributo da trovare. |
| namespaceURI | String | L'URI dello spazio dei nomi dell'attributo da trovare. |

### ReturnValue

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

## Vedi anche

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


Determina se il nodo corrente ha un attributo con il nome specificato.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| name | String | Il nome dell'attributo da trovare. Questo è un nome qualificato. Viene confrontato con il valore **get_Name** del nodo corrispondente. |

### ReturnValue

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

## Vedi anche

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