# SetSelection(IEnumerable<SearchItem>)

> Invoked when the table view selection has changed.

## Definition

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

```csharp
void SetSelection(IEnumerable<SearchItem> items)
```

### Parameters

**** (\[IEnumerable\<SearchItem>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)): Item selection.
