Skip to content

Message Record ​

Definition ​

An error, warning or informational message for a node.

c#
public sealed record Message : IEquatable<Message>

View source

Constructors ​

NameDescription
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 ​

NameDescription
CodeOptional code for the message.
LevelThe level of the message.
TextThe text of the message.

Methods ​

NameDescription
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.