SqlByte.CompareTo SqlByte.CompareTo SqlByte.CompareTo SqlByte.CompareTo Method

定义

将此实例与所提供的对象进行比较,并返回其相对值的指示值。Compares this instance to the supplied object and returns an indication of their relative values.

重载

CompareTo(SqlByte) CompareTo(SqlByte) CompareTo(SqlByte) CompareTo(SqlByte)

将此实例与所提供的 SqlByte 对象进行比较,并返回其相对值的指示值。Compares this instance to the supplied SqlByte object and returns an indication of their relative values.

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

将此实例与所提供的 Object 进行比较,并返回二者相对值的指示值。Compares this instance to the supplied Object and returns an indication of their relative values.

CompareTo(SqlByte) CompareTo(SqlByte) CompareTo(SqlByte) CompareTo(SqlByte)

将此实例与所提供的 SqlByte 对象进行比较,并返回其相对值的指示值。Compares this instance to the supplied SqlByte object and returns an indication of their relative values.

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

参数

value
SqlByte SqlByte SqlByte SqlByte

要比较的 SqlByte 对象。The SqlByte 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- 该对象是空引用(在 Visual Basic 中为 NothingThe object is a null reference (Nothing in Visual Basic)
另请参阅

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

将此实例与所提供的 Object 进行比较,并返回二者相对值的指示值。Compares this 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 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- 该对象是空引用(在 Visual Basic 中为 NothingThe object is a null reference (Nothing in Visual Basic)

实现

另请参阅

适用于