Message Class

Represents a message

Inheritance Hierarchy

System.Object
  TcHmiSrv.Core.Message
Namespace:  TcHmiSrv.Core
Assembly:  TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 1.3.0.0

Syntax

C#

public class Message : IComparable<Message>, 
    ICopyable<Message>, IDeepCopyable<Message>, IShallowCopyable<Message>, 
    IEquatable<Message>, ILocalizable

The Message type exposes the following members.

Constructors

 

Name

Description

Message Class 1:

Message.

Initializes a new instance of the Message class.

Message Class 2:

Message(Context, Severity, String)

Initializes a new instance of the Message class with the specified parameters.

Properties

 

Name

Description

Message Class 3:

Domain

Contains the domain of the Message.

Message Class 4:

IsSet

Gets a value that indicates whether the Message is set.

Message Class 5:

Name

Contains the name of the language variable.

Message Class 6:

Parameters

Gets the parameters of the localizable object. The names of the parameters must match the placeholders in the localization string.

Message Class 7:

Severity

Contains the Severity of the Message.

Message Class 8:

TimeRaised

Contains the DateTime when the Message was raised.

Message Class 9:

Type

Gets the ValueType of the localizable object that will be Message.

Methods

 

Name

Description

Message Class 10:

CompareTo

Compares the current Message with another Message and returns an integer that indicates whether the current Message precedes, follows, or occurs in the same position in the sort order as the other Message.

Message Class 11:

DeepCopy

Creates a new object that is a deep copy of the current Message.

Message Class 12:

Equals(Object)

Determines whether the specified Object is equal to the current Message. (Overrides Object.Equals(Object).)

Message Class 13:

Equals(Message)

Indicates whether the current Message is equal to another Message.

Message Class 14:

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

Message Class 15:

GetHashCode

Serves as the default hash function. (Overrides Object.GetHashCode..)

Message Class 16:

GetType

Gets the Type of the current instance. (Inherited from Object.)

Message Class 17:

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Message Class 18:

ShallowCopy

Creates a new Message that is a shallow copy of the current Message.

Message Class 19:

ToString

Returns a String that represents the Name of the current Message. (Overrides Object.ToString..)

Operators

 

Name

Description

Message Class 20:

Message Class 21:

Equality

Determines whether two instances of the Message class are equal.

Message Class 22:

Message Class 23:

GreaterThan

Determines whether the current instance of the Message class is greater than another instance.

Message Class 24:

Message Class 25:

GreaterThanOrEqual

Determines whether the current instance of the Message class is greater than or equal to another instance.

Message Class 26:

Message Class 27:

Inequality

Determines whether two instances of the Message class are not equal.

Message Class 28:

Message Class 29:

LessThan

Determines whether the current instance of the Message class is less than another instance.

Message Class 30:

Message Class 31:

LessThanOrEqual

Determines whether the current instance of the Message class is less than or equal to another instance.

Extension Methods

 

Name

Description

Message Class 32:

ToJson.

Overloaded.

Returns an unformatted JSON String that represents the current Message. (Defined by MessageExtensions.)

Message Class 33:

ToJson(Boolean)

Overloaded.

Returns an unformatted JSON String that represents the current Message. (Defined by MessageExtensions.)

Message Class 34:

ToJson(Boolean, Boolean)

Overloaded.

Returns a JSON String that represents the current Message. (Defined by MessageExtensions.)

Reference

TcHmiSrv.Core Namespace