'Usage Dim instance As TdPeriodTimeWithTimeZone Dim obj As Object Dim value As Integer value = instance.CompareTo(obj)
Parameters
- obj
- TdPeriodTimeWithTimeZone instance to compare against.
'Usage Dim instance As TdPeriodTimeWithTimeZone Dim obj As Object Dim value As Integer value = instance.CompareTo(obj)
| Exception | Description | 
|---|---|
| System.ArgumentException | obj is not of type TdPeriodTimeWithTimeZone | 
The integer returned when this instance is compared to obj indicates the following:
| Return Value | Meaning | 
|---|---|
| Less than zero | This instance is less than obj. -or- This instance is TdPeriodTimeWithTimeZone.Null. Comparison Algorithm this.Begin < other.Begin OR (this.Begin == other.Begin AND this.End < other.End) | 
| Zero | This instance is equal to obj. -or- This instance and obj are Null. Comparison Algorithm this.Begin == other.Begin AND this.End == other.End | 
| Greater than zero | This instance is greater than obj. -or- obj is Null. Comparison Algorithm this.Begin > other.Begin OR (this.Begin == other.Begin AND this.End > other.End) | 
obj must be an instance of TdPeriodTimeWithTimeZone type or null reference.
| Product | Versions | Platforms | 
|---|---|---|
| .NET | 6, 7 | Windows, Linux, MacOS | 
| .NET Framework | 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 | Windows | 
| .NET Standard | 2.0 | Windows, Linux, MacOS |