ValueCompareTo(UInt16) Method

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


Namespace: TcHmiSrv.Core
Assembly: TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 3.1.7447.0+85f9b473a1dd11b8f3e5c9a182fd1901975e46f9

Syntax

C#

public int CompareTo(
    ushort other
)

Parameters

other  UInt16

An UInt16 to compare with this Value.

Return Value

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

Implements

IComparableTCompareTo(T)

Version Information

Supported in: 3.1.7447.0, 2.3.7447.0, 1.10.7447.0

Reference

Value Class CompareTo Overload TcHmiSrv.Core Namespace

Copyright © Beckhoff Automation GmbH & Co. KG