# Dispose()

> Implementation of IDispose.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public override sealed void Dispose()
```

### Remarks

If the event was instantiated from an event pool, the event is released when Dispose is called.
