# RegisterEventType()

> Registers an event class to the event type system.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.0/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
protected static long RegisterEventType()
```

### Returns

| Type                                                        | Description  |
| ----------------------------------------------------------- | ------------ |
| [long](https://learn.microsoft.com/dotnet/api/system.int64) | The type ID. |
