---
title: "contains_key method"
url: "https://reference.aspose.com/svg/python-net/aspose.svg.dom.mutations/mutationobserverinit/contains_key/"
product: "Aspose.SVG for Python via .NET API References"
---


## contains_key {#str}

Determines whether the [`MutationObserverInit`](/svg/python-net/aspose.svg.dom.mutations/mutationobserverinit) collection contain a specified key.


### Returns 


True if the [`MutationObserverInit`](/svg/python-net/aspose.svg.dom.mutations/mutationobserverinit) contain a specified key; otherwise, false.


```python
def contains_key(self, key):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| key | str | The key to check. |



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