AmsNetId.CompareTo Method (AmsNetId)

Compares the current object with another object of the same type.

Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

public int CompareTo(
    AmsNetId? other
)

Parameters

other

Type: TwinCAT.Ads.AmsNetId
An object to compare with this object.

Return Value

Type: Int32
A value that indicates the relative order of the objects being compared. The return value has the following meanings: Value Meaning Less than zero This object is less than the other parameter.Zero This object is equal to other. Greater than zero This object is greater than other.

Implements

IComparable.T..CompareTo(T)

Reference

AmsNetId Class

CompareTo Overload

TwinCAT.Ads Namespace