## Element.SetAttribute method

Agrega un nuevo atributo. Si un atributo con ese nombre ya está presente en el elemento, su valor se cambia para ser el del valor parámetro

```csharp
public void SetAttribute(string name, string value)
```

| Parámetro | Escribe | Descripción |
| --- | --- | --- |
| name | String | El nombre del atributo. |
| value | String | El valor. |

### Ver también

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


