## Element.HasAttributeNS method

Returns true when an attribute with a given local name and namespace URI is specified on this element or has a default value, false otherwise.

```csharp
public bool HasAttributeNS(string namespaceURI, string localName)
```

| Parameter | Type | Description |
| --- | --- | --- |
| namespaceURI | String | The namespace URI. |
| localName | String | Name of the local. |

### Return Value

`true` if [has attribute NS] [the specified namespace URI]; otherwise, `false`.

### See Also

* class [Element](../)
* namespace [Aspose.Html.Dom](../../../aspose.html.dom/)
* assembly [Aspose.HTML](../../../)
