## Add(*KeyValuePair&lt;string, object&gt;*) {#add}

Adds an element to the [`MutationObserverInit`](../) collection.

```csharp
public void Add(KeyValuePair<string, object> item)
```

| Parameter | Type | Description |
| --- | --- | --- |
| item | KeyValuePair`2 | The item to add. |

### See Also

* class [MutationObserverInit](../)
* namespace [Aspose.Html.Dom.Mutations](../../../aspose.html.dom.mutations/)
* assembly [Aspose.HTML](../../../)

---

## Add(*string, object*) {#add_1}

Adds the specified key and value to the [`MutationObserverInit`](../) collection.

```csharp
public void Add(string key, object value)
```

| Parameter | Type | Description |
| --- | --- | --- |
| key | String | The key of the element to add. |
| value | Object | The value of the element to add. |

### See Also

* class [MutationObserverInit](../)
* namespace [Aspose.Html.Dom.Mutations](../../../aspose.html.dom.mutations/)
* assembly [Aspose.HTML](../../../)
