# MessageAction class

Namespace: [Grasshopper2.Doc](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.doc.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class MessageAction
```

A class wrapping around a [MessageDelegate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messagedelegate.md).

## Constructors

- [MessageAction](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messageaction/ctor.md): (2 overloads) Create a new [MessageAction](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messageaction.md) around an existing [MessageDelegate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messagedelegate.md).

## Properties

- [Delegate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messageaction/delegate.md): Gets the delegate to invoke for this action.
- [Info](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messageaction/info.md): Gets the detailed info of the delegate.
- [Name](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messageaction/name.md): Gets the name of the delegate.
