# Dispose

> Disposes the ElementNode and releases its handle.

## Definition

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

## Dispose()

Disposes the ElementNode and releases its handle.

```csharp
public void Dispose()
```

## Dispose(bool)

Disposes the ElementNode.

```csharp
protected virtual void Dispose(bool disposing)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;
