# CommandHandler

Delegate in [Yarn](https://docs.yarnspinner.dev/2.4/api/csharp/yarn)

Inherits from `System.MulticastDelegate`

## Summary

Represents the method that is called when the Dialogue delivers a [Command](https://docs.yarnspinner.dev/2.4/api/csharp/yarn/yarn.command) .

```csharp
public delegate void CommandHandler(Command command);
```

## Parameters

| Name                                                                                  | Description                                                                                           |
| ------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| [Yarn.Command](https://docs.yarnspinner.dev/2.4/api/csharp/yarn/yarn.command) command | The [Command](https://docs.yarnspinner.dev/2.4/api/csharp/yarn/yarn.command) that has been delivered. |

## See Also

* [LineHandler](https://docs.yarnspinner.dev/2.4/api/csharp/yarn/yarn.linehandler): Represents the method that is called when the Dialogue delivers a [Line](https://docs.yarnspinner.dev/2.4/api/csharp/yarn/yarn.line) .
* [OptionsHandler](https://docs.yarnspinner.dev/2.4/api/csharp/yarn/yarn.optionshandler): Represents the method that is called when the Dialogue delivers an [OptionSet](https://docs.yarnspinner.dev/2.4/api/csharp/yarn/yarn.optionset) .
* [NodeStartHandler](https://docs.yarnspinner.dev/2.4/api/csharp/yarn/yarn.nodestarthandler): Represents the method that is called when the Dialogue begins executing a node.
* [NodeCompleteHandler](https://docs.yarnspinner.dev/2.4/api/csharp/yarn/yarn.nodecompletehandler): Represents the method that is called when the Dialogue reaches the end of a node.
* [DialogueCompleteHandler](https://docs.yarnspinner.dev/2.4/api/csharp/yarn/yarn.dialoguecompletehandler): Represents the method that is called when the dialogue has reached its end, and no more code remains to be run.
