# SearchContext

> Creates a new search context.

## Definition

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

## SearchContext(IEnumerable\<SearchProvider>, string, SearchFlags)

Creates a new search context.

```csharp
public SearchContext(IEnumerable<SearchProvider> providers, string searchText, SearchFlags options)
```

### Parameters

**** (\[IEnumerable\<SearchProvider>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)): The list of search providers used to resolve the specified query.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The search query to perform.**** (\[SearchFlags]\(/engine/6000.7/script-reference/unityeditor/search/searchflags)): A set of options that help evaluate the query.

## SearchContext(IEnumerable\<SearchProvider>, string)

Creates a new search context.

```csharp
public SearchContext(IEnumerable<SearchProvider> providers, string searchText)
```

### Parameters

**** (\[IEnumerable\<SearchProvider>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)): The list of search providers used to resolve the specified query.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The search query to perform.

## SearchContext(IEnumerable\<SearchProvider>)

Creates a new search context.

```csharp
public SearchContext(IEnumerable<SearchProvider> providers)
```

### Parameters

**** (\[IEnumerable\<SearchProvider>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)): The list of search providers used to resolve the specified query.
