# ICommandEvent

> Interface for Command events.

## Definition

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

```csharp
public interface ICommandEvent
```

## Remarks

Command events are only available on Editor-type Panels.

Refer to the [Command events](/engine/6000.7/manual/uitoolkits/uielements/uie-events/reference/uie-command-events.md) manual page for more information and examples.

Additional Resources: [ValidateCommandEvent](/engine/6000.7/script-reference/unityengine/uielements/validatecommandevent.md), [ExecuteCommandEvent](/engine/6000.7/script-reference/unityengine/uielements/executecommandevent.md), [\_contextType](/engine/6000.7/script-reference/unityengine/uielements/ipanel/contexttype.md)

## Properties

| Property                                                                                           | Description          |
| -------------------------------------------------------------------------------------------------- | -------------------- |
| [commandName](/engine/6000.7/script-reference/unityengine/uielements/icommandevent/commandname.md) | Name of the command. |
