Skip to content

Message Constructors ​

Overloads ​

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.

Message(MessageLevel, String) ​

Initializes a new instance of the Message class with the specified Level and Text.

c#
public Message(MessageLevel level, string text);

View source

Parameters ​

NameTypeDescription
levelMessageLevelThe Level of the message.
textStringThe Text of the message.

Message(MessageLevel, String, String) ​

Initializes a new instance of the Message class with the specified Level, Code and Text.

c#
public Message(MessageLevel level, string code, string text);

View source

Parameters ​

NameTypeDescription
levelMessageLevelThe Level of the message.
codeStringThe Code of the message.
textStringThe Text of the message.