SqlSingle.CompareTo 方法

定義

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

多載

CompareTo(SqlSingle)

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

CompareTo(Object)

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

CompareTo(SqlSingle)

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

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

參數

value
SqlSingle

要比較的 SqlSingleThe SqlSingle 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)

將這個 SqlSingle 執行個體與提供的 Object 相比較,並傳回它們相對值的指示。Compares this SqlSingle 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

要比較的 ObjectThe Object 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)

實作

另請參閱

適用於