AFTimeZoneCompareTo Method (AFTimeZone)
public int CompareTo( AFTimeZone obj )
Public Function CompareTo ( obj As AFTimeZone ) As Integer Dim instance As AFTimeZone Dim obj As AFTimeZone Dim returnValue As Integer returnValue = instance.CompareTo(obj)
public: virtual int CompareTo( AFTimeZone^ obj ) sealed
abstract CompareTo : obj : AFTimeZone -> int override CompareTo : obj : AFTimeZone -> int
A 32-bit signed integer that indicates the relative order of the comparands. The return value has these meanings:
|Less than zero||This instance is less than obj.|
|Zero||This instance is equal to obj.|
|Greater than zero||This instance is greater than obj.|
|ArgumentException||The obj parameter is not the same type as this instance.|
By definition, any object compares greater than and two null references compare equal to each other.
This method uses the Time Zone's bias from Coordinated Universal Time (UTC) to perform the comparison operation. If the bias is equal, a secondary comparison is done on the Name property.