Skip to content

Message.Error Method ​

Overloads ​

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.

Error(String, String) ​

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

c#
public static Message Error(string code, string text);

View source

Parameters ​

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

Returns ​

Message

The error message.

Error(String) ​

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

c#
public static Message Error(string text);

View source

Parameters ​

NameTypeDescription
textStringThe Text of the message.

Returns ​

Message

The error message.