# QueryListBlockAttribute

> Register a list block for a given filter.

## Definition

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

## QueryListBlockAttribute(string, string, string, string)

Register a list block for a given filter.

```csharp
public QueryListBlockAttribute(string category, string name, string id, string op = "=")
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Category of the block.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Display name of the block.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Filter id of the block for which to display this list block.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Default operator fo the filter block.

## QueryListBlockAttribute(string, string, string\[], string)

Register a list block for a given filter.

```csharp
public QueryListBlockAttribute(string category, string name, string[] ids, string op = "=")
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Category of the block.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Display name of the block.**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): Set of IDs for which this list block will be applied too.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Default operator fo the filter block.
