# Message 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
[IoId("00000000-5c9b-4a8f-813c-468ba16d9f27")]
public sealed class Message : IComparable<Message>, IEquatable<Message>, IStorable
```

A message associated with an [IDocumentObject](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.idocumentobject.md), typically generated during solutions.

## Constructors

- [Message](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.message/ctor.md)

## Properties

- [ActionCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.message/actioncount.md): Gets the number of actions in this message.
- [Actions](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.message/actions.md): Gets the action to invoke (if any) when this message is triggered by the user.
- [Info](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.message/info.md): Gets the in-depth explanation of this message. This may contain several sentences, including definitions of words.
- [Level](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.message/level.md): Gets the level of this message.
- [Text](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.message/text.md): Gets the text of this message. This is ideally a single sentence containing not too many words.
- [Valence](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.message/valence.md): Gets or sets the valence of this message. This is typically assigned automatically when similar messages are merged, you do not have to assign the valence yourself.

## Methods

- [CompareTo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.message/compareto.md)
- [Equals](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.message/equals.md): (2 overloads)
- [Error](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.message/error.md): (3 overloads, static) Create an error which automatically expires each solution.
- [GetHashCode](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.message/gethashcode.md)
- [Remark](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.message/remark.md): (static) Create a remark which automatically expires each solution.
- [Store](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.message/store.md)
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.message/tostring.md)
- [Warning](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.message/warning.md): (static) Create a warning which automatically expires each solution.
- [WithActions](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.message/withactions.md): Add actions to this message.
- [WithoutActions](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.message/withoutactions.md): Remove all actions from this message.
- [WithText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.message/withtext.md): Replace the text of this message. This is typically used to prepend or append additional information.
