# Enumerate(SearchContext, IEnumerable<SearchItem>)

> Enumerate a set of columns for a variety of search items.

## Definition

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

```csharp
public static List<SearchColumn> Enumerate(SearchContext context, IEnumerable<SearchItem> items)
```

### Parameters

**** (\[SearchContext]\(/engine/6000.3/script-reference/unityeditor/search/searchcontext)): Search context.**** (\[IEnumerable\<SearchItem>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)): Items for which to fetch a set of columns.

### Returns

| Type                                                                                            | Description     |
| ----------------------------------------------------------------------------------------------- | --------------- |
| [List\<SearchColumn>](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1) | Search columns. |

### Remarks

This funciton would essentially be used with [SearchProvider.fetchColumns](/engine/6000.3/script-reference/unityeditor/search/searchprovider/fetchcolumns.md).
