# Contains(SearchItem)

> Checks if the search item is contained in the current selection.

## Definition

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

```csharp
public bool Contains(SearchItem item)
```

### Parameters

**** (\[SearchItem]\(/engine/6000.5/script-reference/unityeditor/search/searchitem)): Search item to be compared.

### Returns

| Type                                                          | Description                                     |
| ------------------------------------------------------------- | ----------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the item is contained in the selection. |
