# HasHandler(int, Delegate)

> Check if the handler is already registered for the destination window ID.

## Definition

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

```csharp
public static bool HasHandler(int dropDstId, Delegate handler)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): ID of the destination window.**** (\[Delegate]\(https\://learn.microsoft.com/dotnet/api/system.delegate)): The handler of the targeted window.

### Returns

| Type                                                          | Description                                |
| ------------------------------------------------------------- | ------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the handler is already registered. |
