SqlMoney.CompareTo SqlMoney.CompareTo SqlMoney.CompareTo SqlMoney.CompareTo Method

定义

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

重载

CompareTo(SqlMoney) CompareTo(SqlMoney) CompareTo(SqlMoney) CompareTo(SqlMoney)

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

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

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

CompareTo(SqlMoney) CompareTo(SqlMoney) CompareTo(SqlMoney) CompareTo(SqlMoney)

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

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

参数

value
SqlMoney SqlMoney SqlMoney SqlMoney

要比较的 SqlMoneyThe SqlMoney 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)

将此 SqlMoney 实例与所提供的 Object 进行比较,并返回二者相对值的指示值。Compares this SqlMoney 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)

实现

另请参阅

适用于