Message Record
Definition
An error, warning or informational message for a node.
public sealed record Message : IEquatable<Message>
Constructors
| Name | Description |
|---|---|
Message(MessageLevel, String) |
Initializes a new instance of the Message class with the specified Level and Text. |
Message(MessageLevel, String, String) |
Initializes a new instance of the Message class with the specified Level, Code and Text. |
Properties
| Name | Description |
|---|---|
Code |
Optional code for the message. |
Level |
The level of the message. |
Text |
The text of the message. |
Methods
| Name | Description |
|---|---|
Error(String, String) |
Initializes a new instance of the Message class with the Level Error and specified Code and Text. |
Error(String) |
Initializes a new instance of the Message class with the Level Error and specified Text. |
Info(String, String) |
Initializes a new instance of the Message class with the Level Info and specified Code and Text. |
Info(String) |
Initializes a new instance of the Message class with the Level Info and specified Text. |
ToString() |
Returns a string representation of this message. |
Warning(String, String) |
Initializes a new instance of the Message class with the Level Warning and specified Code and Text. |
Warning(String) |
Initializes a new instance of the Message class with the Level Warning and specified Text. |