# Messages 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 Messages
```

A collection of zero or more [Message](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.message.md) instances.

## Constructors

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

## Properties

- [Count](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messages/count.md): Gets the total number of messages.
- [Empty](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messages/empty.md): (static) Gets the empty message set.
- [ErrorCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messages/errorcount.md): Gets the number of error.
- [Errors](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messages/errors.md): Enumerates over all errors.
- [HasErrorActions](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messages/haserroractions.md): Gets whether any of the errors in this collection provide actions.
- [HasRemarkActions](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messages/hasremarkactions.md): Gets whether any of the remarks in this collection provide actions.
- [HasWarningActions](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messages/haswarningactions.md): Gets whether any of the warnings in this collection provide actions.
- [RealCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messages/realcount.md): Gets the total number of messages including their valence multipliers.
- [RemarkCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messages/remarkcount.md): Gets the number of remarks.
- [Remarks](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messages/remarks.md): Enumerates over all remarks.
- [WarningCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messages/warningcount.md): Gets the number of warnings.
- [Warnings](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messages/warnings.md): Enumerates over all warnings.
- [WorstMessageLevel](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messages/worstmessagelevel.md): Gets the worst case message level in this collection.

## Indexers

- [this[]](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messages/item.md): Gets the message at the given index.

## Methods

- [FromConversionRecord](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messages/fromconversionrecord.md): (static) Create a message set from a conversion record.
- [FromException](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messages/fromexception.md): (static) Create all the error messages implied by an exception.
- [Merge](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messages/merge.md): Merge two message sets.
- [With](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messages/with.md): Add a message to this collection. If another message with a similar level and id already exists, it will be replaced.
- [Without](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.messages/without.md): (2 overloads) Remove all messages with the given level.
