SqlGuid.CompareTo 方法

定義

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

多載

CompareTo(SqlGuid)

將這個 SqlGuid 結構與提供的 SqlGuid 相比較,並傳回它們相對值的指示。Compares this SqlGuid structure to the supplied SqlGuid and returns an indication of their relative values. 比較最後 6 個以上的位元組,並將最後 6 個位元組視為比較中的最大顯著性位元組。Compares more than the last 6 bytes, but treats the last 6 bytes as the most significant ones in comparisons.

CompareTo(Object)

將這個 SqlGuid 結構與提供的物件相比較,並傳回它們相對值的指示。Compares this SqlGuid structure to the supplied object and returns an indication of their relative values. 比較最後 6 個以上的位元組,並將最後 6 個位元組視為比較中的最大顯著性位元組。Compares more than the last 6 bytes, but treats the last 6 bytes as the most significant ones in comparisons.

備註

比較最後 6 個以上的位元組,並將最後 6 個位元組視為比較中的最大顯著性位元組。Compares more than the last 6 bytes, but treats the last 6 bytes as the most significant ones in comparisons.

CompareTo(SqlGuid)

將這個 SqlGuid 結構與提供的 SqlGuid 相比較,並傳回它們相對值的指示。Compares this SqlGuid structure to the supplied SqlGuid and returns an indication of their relative values. 比較最後 6 個以上的位元組,並將最後 6 個位元組視為比較中的最大顯著性位元組。Compares more than the last 6 bytes, but treats the last 6 bytes as the most significant ones in comparisons.

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

參數

value
SqlGuid

要比較的 SqlGuidThe SqlGuid to be compared.

傳回

Int32

帶正負號的數字,表示執行個體與物件的相對值。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 object.
Zero 這個執行個體與物件相同。This instance is the same as object.
大於零Greater than zero 這個執行個體大於物件。This instance is greater than object -或--or- 物件為 Null 參考 (Nothing)。object is a null reference (Nothing).

另請參閱

適用於

CompareTo(Object)

將這個 SqlGuid 結構與提供的物件相比較,並傳回它們相對值的指示。Compares this SqlGuid structure to the supplied object and returns an indication of their relative values. 比較最後 6 個以上的位元組,並將最後 6 個位元組視為比較中的最大顯著性位元組。Compares more than the last 6 bytes, but treats the last 6 bytes as the most significant ones in comparisons.

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.

傳回

Int32

帶正負號的數字,表示執行個體與物件的相對值。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 object.
Zero 這個執行個體與物件相同。This instance is the same as object.
大於零Greater than zero 這個執行個體大於物件。This instance is greater than object -或--or- 物件為 Null 參考 (Nothing)。object is a null reference (Nothing)

實作

另請參閱

適用於