Editare

Partajați prin


SqlDateTime.CompareTo Method

Definition

Compares this SqlDateTime structure to the supplied parameter and returns an indication of their relative values.

Overloads

CompareTo(SqlDateTime)

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

CompareTo(Object)

Compares this SqlDateTime structure to the supplied Object and returns an indication of their relative values.

CompareTo(SqlDateTime)

Source:
SQLDateTime.cs
Source:
SQLDateTime.cs
Source:
SQLDateTime.cs

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

public:
 int CompareTo(System::Data::SqlTypes::SqlDateTime value);
public int CompareTo (System.Data.SqlTypes.SqlDateTime value);
member this.CompareTo : System.Data.SqlTypes.SqlDateTime -> int
Public Function CompareTo (value As SqlDateTime) As Integer

Parameters

value
SqlDateTime

The SqlDateTime structure to be compared.

Returns

A signed number that indicates the relative values of the instance and the object.

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

-or-

SqlDateTime is a null reference (Nothing in Visual Basic)

See also

Applies to

CompareTo(Object)

Source:
SQLDateTime.cs
Source:
SQLDateTime.cs
Source:
SQLDateTime.cs

Compares this SqlDateTime structure to the supplied Object and returns an indication of their relative values.

public:
 virtual int CompareTo(System::Object ^ value);
public int CompareTo (object? value);
public int CompareTo (object value);
abstract member CompareTo : obj -> int
override this.CompareTo : obj -> int
Public Function CompareTo (value As Object) As Integer

Parameters

value
Object

The Object to be compared.

Returns

A signed number that indicates the relative values of the instance and the object.

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

-or-

The object is a null reference (Nothing as Visual Basic).

Implements

See also

Applies to