## Element.SetAttributeNode method

Agrega un nuevo nodo de atributo. Si un atributo con ese nombre (nodeName) ya está presente en el elemento, se reemplaza por el nuevo.

```csharp
public Attr SetAttributeNode(Attr newAttr)
```

| Parámetro | Escribe | Descripción |
| --- | --- | --- |
| newAttr | Attr | El nuevo attr. |

### Valor_devuelto

Devuelve atributo

### Ver también

* class [Attr](../../attr/)
* class [Element](../)
* espacio de nombres [Aspose.Html.Dom](../../element/)
* asamblea [Aspose.HTML](../../../)


