# ObjectSelectorHandlerAttribute(Type)

> Constructor used to declare the ObjectSelectorHandlerAttribute on a method.

## Definition

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

> **Warning:**
>
> **Removed.** ObjectSelectorHandlerAttribute has been deprecated. Use SearchContextAttribute instead.

```csharp
public ObjectSelectorHandlerAttribute(Type attributeType)
```

### Parameters

**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): The attribute type.
