This documentation is archived and is not being maintained.

OracleDateTime.CompareTo Method

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Compares this OracleDateTime structure to the supplied object and returns an indication of their relative values.

[Visual Basic]
Public Overridable Function CompareTo( _
   ByVal obj As Object _
) As Integer
public virtual int CompareTo(
 object obj
public: virtual int CompareTo(
 Object* obj
public function CompareTo(
   obj : Object
) : int;


The object to be compared.

Return Value

A signed number indicating the relative values of the instance and the object.

Return Value Condition
Less than zero This instance is less than object.
Zero This instance is the same as object.
Greater than zero This instance is greater than object


object is a null reference (Nothing)


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

OracleDateTime Structure | OracleDateTime Members | System.Data.OracleClient Namespace