SqlInt64.CompareTo Method

Definition

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

Overloads

CompareTo(SqlInt64)

Compares this SqlInt64 instance to the supplied SqlInt64 and returns an indication of their relative values.

CompareTo(Object)

Compares this SqlInt64 instance to the supplied Object and returns an indication of their relative values.

CompareTo(SqlInt64)

Source:
SQLInt64.cs
Source:
SQLInt64.cs
Source:
SQLInt64.cs

Compares this SqlInt64 instance to the supplied SqlInt64 and returns an indication of their relative values.

C#
public int CompareTo (System.Data.SqlTypes.SqlInt64 value);

Parameters

value
SqlInt64

The SqlInt64 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 in Visual Basic).

See also

Applies to

.NET 9 și alte versiuni
Produs Versiuni
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

CompareTo(Object)

Source:
SQLInt64.cs
Source:
SQLInt64.cs
Source:
SQLInt64.cs

Compares this SqlInt64 instance to the supplied Object and returns an indication of their relative values.

C#
public int CompareTo (object? value);
C#
public int CompareTo (object value);

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 in Visual Basic).

Implements

See also

Applies to

.NET 9 și alte versiuni
Produs Versiuni
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1