# Dispose

> Dispose of the Search Context.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Search](/engine/6000.3/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

## Dispose()

Dispose of the Search Context.

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

## Dispose(bool)

Dispose of the Search Context.

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

### Parameters

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