
## MutationObserverInit class

This class represents an options collection which is used to configure [`MutationObserver`](/html/python-net/aspose.html.dom.mutations/mutationobserver).



The MutationObserverInit type exposes the following members:

### Constructors
| Constructor | Description |
| :- | :- |
| [__init__](/html/python-net/aspose.html.dom.mutations/mutationobserverinit/__init__/#) | Initializes a new instance of the [`MutationObserverInit`](/html/python-net/aspose.html.dom.mutations/mutationobserverinit) class. |


### Properties
| Property | Description |
| :- | :- |
| [child_list](/html/python-net/aspose.html.dom.mutations/mutationobserverinit/child_list) | Set to true if mutations to target’s children are to be observed. |
| [attributes](/html/python-net/aspose.html.dom.mutations/mutationobserverinit/attributes) | Set to true if mutations to target’s attributes are to be observed. Can be omitted if attributeOldValue and/or attributeFilter is specified. |
| [character_data](/html/python-net/aspose.html.dom.mutations/mutationobserverinit/character_data) | Set to true if mutations to target’s data are to be observed. Can be omitted if characterDataOldValue is specified |
| [subtree](/html/python-net/aspose.html.dom.mutations/mutationobserverinit/subtree) | Set to true if mutations to not just target, but also target’s descendants are to be observed |
| [attribute_old_value](/html/python-net/aspose.html.dom.mutations/mutationobserverinit/attribute_old_value) | Set to true if attributes is true or omitted and target’s attribute value before the mutation needs to be recorded. |
| [character_data_old_value](/html/python-net/aspose.html.dom.mutations/mutationobserverinit/character_data_old_value) | Set to true if characterData is set to true or omitted and target’s data before the mutation needs to be recorded. |
| [attribute_filter](/html/python-net/aspose.html.dom.mutations/mutationobserverinit/attribute_filter) | Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted. |
| [count](/html/python-net/aspose.html.dom.mutations/mutationobserverinit/count) | Gets the number of key/value pairs contained in the [`MutationObserverInit`](/html/python-net/aspose.html.dom.mutations/mutationobserverinit) collection. |
| [is_read_only](/html/python-net/aspose.html.dom.mutations/mutationobserverinit/is_read_only) | Determines whether the [`MutationObserverInit`](/html/python-net/aspose.html.dom.mutations/mutationobserverinit) collection is mutable. |
| [keys](/html/python-net/aspose.html.dom.mutations/mutationobserverinit/keys) | Gets a collection containing the keys in the [`MutationObserverInit`](/html/python-net/aspose.html.dom.mutations/mutationobserverinit) collection. |
| [values](/html/python-net/aspose.html.dom.mutations/mutationobserverinit/values) | Gets a collection containing the values in the [`MutationObserverInit`](/html/python-net/aspose.html.dom.mutations/mutationobserverinit) collection. |


### Methods
| Method | Description |
| :- | :- |
| [clear](/html/python-net/aspose.html.dom.mutations/mutationobserverinit/clear/#) | Removes all the elements from the [`MutationObserverInit`](/html/python-net/aspose.html.dom.mutations/mutationobserverinit) collection. |
| [contains_key](/html/python-net/aspose.html.dom.mutations/mutationobserverinit/contains_key/#str) | Determines whether the [`MutationObserverInit`](/html/python-net/aspose.html.dom.mutations/mutationobserverinit) collection contain a specified key. |
| [add](/html/python-net/aspose.html.dom.mutations/mutationobserverinit/add/#str-any) | Adds the specified key and value to the [`MutationObserverInit`](/html/python-net/aspose.html.dom.mutations/mutationobserverinit) collection. |
| [remove](/html/python-net/aspose.html.dom.mutations/mutationobserverinit/remove/#str) | Removes the value associated with the specified key from the [`MutationObserverInit`](/html/python-net/aspose.html.dom.mutations/mutationobserverinit) collection. |
| [try_get_value](/html/python-net/aspose.html.dom.mutations/mutationobserverinit/try_get_value/#str-any) | Gets the value associated with the specified key. |



### See Also
* module [`aspose.html.dom.mutations`](..)
* class [`MutationObserver`](/html/python-net/aspose.html.dom.mutations/mutationobserver)
* class [`MutationObserverInit`](/html/python-net/aspose.html.dom.mutations/mutationobserverinit)
