Message.CompareTo Method

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.

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

Syntax

C#

public int CompareTo(
    Message other
)

Parameters

other

Type: TcHmiSrv.Core.Message
The Message to compare with this Message.

Return Value

Type: Int32
A value that is less than zero if the current Message precedes other in the sort order, zero if the current Message occurs in the same position in the sort other as other or greater than zero if the current Message follows other in the sort order.

Implements

IComparable.T..CompareTo(T)

Reference

Message Class

TcHmiSrv.Core Namespace