'Usage Dim instance As TdIntervalYear Dim obj As Object Dim value As Integer value = instance.CompareTo(obj)
Parameters
- obj
- A TdIntervalYear object to compare.
Return Value
The result of the comparison is returned as a signed integer.
'Usage Dim instance As TdIntervalYear Dim obj As Object Dim value As Integer value = instance.CompareTo(obj)
Exception | Description |
---|---|
System.ArgumentException | obj is not of type TdIntervalYear |
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 TdIntervalYear.Null and obj is non-null. |
Zero |
This instance is equal to obj. -or- This instance is Null and obj is Null. |
Greater than Zero |
This instance is greater than obj. -or- obj is Null and this instance is non-null. -or- obj is a |
obj must be an instance of TdIntervalYear 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 |