# AddCommandHandler(string,MethodInfo)

Method in [Actions](https://docs.yarnspinner.dev/2.4/api/csharp/yarn.unity/yarn.unity.actions)

## Summary

```csharp
public void AddCommandHandler(string commandName, MethodInfo methodInfo)
```

## Parameters

| Name                                      | Description |
| ----------------------------------------- | ----------- |
| `string` commandName                      |             |
| `System.Reflection.MethodInfo` methodInfo |             |
