TimeZone.CompareTo MethodTimeZone.CompareTo MethodTimeZone::CompareTo Method

Compares this instance to a specified TimeZoneTimeZoneTimeZone and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified TimeZoneTimeZoneTimeZone.

Syntax

Public Function CompareTo( _
    other As TimeZone _
) As Integer
public int CompareTo(
    TimeZone other
)
public:
virtual int CompareTo(
    TimeZone other
) sealed
 

Return Value

Type: System.Int32System.Int32System::Int32

A signed number that indicates the relative order of this instance and other. The return value has the following meanings.

  • Less than zero indicates that this instance is less than other.
  • Zero indicates that this instance is equal to other.
  • Greater than zero indicates that this instance is greater than other.