SqlDouble.CompareTo SqlDouble.CompareTo SqlDouble.CompareTo SqlDouble.CompareTo Method

定義

將這個 SqlDouble 執行個體與提供的物件相比較,並傳回它們相對值的指示。Compares this SqlDouble instance to the supplied object and returns an indication of their relative values.

多載

CompareTo(SqlDouble) CompareTo(SqlDouble) CompareTo(SqlDouble) CompareTo(SqlDouble)

將這個 SqlDouble 執行個體與提供的 SqlDouble 相比較,並傳回它們相對值的指示。Compares this SqlDouble instance to the supplied SqlDouble and returns an indication of their relative values.

CompareTo(Object) CompareTo(Object) CompareTo(Object) CompareTo(Object)

將這個 SqlDouble 執行個體與提供的 Object 相比較,並傳回它們相對值的指示。Compares this SqlDouble instance to the supplied Object and returns an indication of their relative values.

CompareTo(SqlDouble) CompareTo(SqlDouble) CompareTo(SqlDouble) CompareTo(SqlDouble)

將這個 SqlDouble 執行個體與提供的 SqlDouble 相比較,並傳回它們相對值的指示。Compares this SqlDouble instance to the supplied SqlDouble and returns an indication of their relative values.

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

參數

value
SqlDouble SqlDouble SqlDouble SqlDouble

要比較的 SqlDoubleThe SqlDouble to be compared.

傳回

帶正負號的數字,表示執行個體與物件的相對值。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- 物件是 null 參考 (在 Visual Basic 中為 Nothing)The object is a null reference (Nothing in Visual Basic)
另請參閱

CompareTo(Object) CompareTo(Object) CompareTo(Object) CompareTo(Object)

將這個 SqlDouble 執行個體與提供的 Object 相比較,並傳回它們相對值的指示。Compares this SqlDouble instance to the supplied Object and returns an indication of their relative values.

public:
 virtual int CompareTo(System::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

參數

value
Object Object Object Object

要比較的 ObjectThe Object to compare.

傳回

帶正負號的數字,表示執行個體與物件的相對值。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- 物件是 null 參考 (Visual Basic 中的 Nothing)。The object is a null reference (Nothing in Visual Basic).

實作

另請參閱

適用於