# QueryToken

> Creates a token from a string and a position.

## Definition

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

## QueryToken(string, int)

Creates a token from a string and a position.

```csharp
public QueryToken(string text, int position)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The value of the token.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The position of the token in the entire query string.

## QueryToken(string, int, int)

Creates a token from a string and a position.

```csharp
public QueryToken(string text, int position, int length)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The value of the token.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The position of the token in the entire query string.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The length of the token.
