Message class | QSYS API Reference Guide

Estimated reading time: 2 minutes

Represent a message sent by a program.

Namespace: ASNA.QSys.Runtime.JobSupport Assembly: ASNA.QSys.Runtime.dll

Inheritance: Object

Constructors

Name Description
Message(String, String, String, MessageType) Initializes a new instance of the Message class using the specified message id and data from a message file and type.
Message(String, MessageType) Initializes a new instance of the Message class using a text string and type.

Message(String, String, String, MessageType)

Initializes a new instance of the Message class using the specified message id and data from a message file and type.

Message(String, String, String, MessageType)

Parameters

Type Parameter name Description
String MsgId The message identification.
String MsgDta The replacement text, if any, for the message placeholders.
String MsgFile The message file name where the message description is to be found.
MessageType MsgType One of the enumeration values that specifies the severity of the message.

Message(String, MessageType)

Initializes a new instance of the Message class using a text string and type.

Message(String, MessageType)

Parameters

Type Parameter name Description
String text The user provide text of the message.
MessageType type One of the enumeration values that specifies the severity of the message.

Properties

Type Name Description
String Data Gets the replacement data associated with the message.
DateTime DateTimeSent Gets the DateTime when the message was created.
String Id Gets the message identification.
String Key Gets the unique identifier of the message.
String MessageFile Gets the name of the file where the message description can be found.
MessageType MessageType Gets the MessageType of the message.
String Text Gets the text used when the message was created.