Alarm.CompareTo Method

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

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

Syntax

C#

public int CompareTo(
    Alarm other
)

Parameters

other

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

Return Value

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

Implements

IComparable.T..CompareTo(T)

Reference

Alarm Class

TcHmiSrv.Core Namespace