Send feedback on this topic.
Teradata.Client.Provider
CompareTo(Object) Method



Teradata.Client.Provider Namespace > TdTimestampWithTimeZone Structure > CompareTo Method : CompareTo(Object) Method
TdTimestampWithTimeZone instance to compare against.
Compares this instance to the specified TdTimestampWithTimeZone obj.
Syntax
'Declaration
 
Public Overloads Function CompareTo( _
   ByVal obj As Object _
) As Integer
'Usage
 
Dim instance As TdTimestampWithTimeZone
Dim obj As Object
Dim value As Integer
 
value = instance.CompareTo(obj)
public int CompareTo( 
   object obj
)
public:
int CompareTo( 
   Object^ obj
) 

Parameters

obj
TdTimestampWithTimeZone instance to compare against.

Return Value

The result of the comparison is returned as an integer.
Exceptions
ExceptionDescription
obj is not of type TdTimestampWithTimeZone
Remarks

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 TdTimestampWithTimeZone.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 or a null reference.

obj must be an instance of TdTimestampWithTimeZone type or null reference.

Refer to TdTimestampWithTimeZone.CompareTofor more information.
Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdTimestampWithTimeZone Structure
TdTimestampWithTimeZone Members
Overload List
CompareTo(TdTimestampWithTimeZone) Method