SqlSingle.CompareTo Método

Definição

Compara essa instância com um objeto fornecido e retorna uma indicação de seus valores relativos.Compares this instance to the supplied object and returns an indication of their relative values.

Sobrecargas

CompareTo(SqlSingle)

Compara esta instância SqlSingle com o SqlSingle fornecido e retorna uma indicação de seus valores relativos.Compares this SqlSingle instance to the supplied SqlSingle and returns an indication of their relative values.

CompareTo(Object)

Compara esta instância SqlSingle com o Object fornecido e retorna uma indicação de seus valores relativos.Compares this SqlSingle instance to the supplied Object and returns an indication of their relative values.

CompareTo(SqlSingle)

Compara esta instância SqlSingle com o SqlSingle fornecido e retorna uma indicação de seus valores relativos.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

Parâmetros

value
SqlSingle

O SqlSingle a ser comparado.The SqlSingle to be compared.

Retornos

Int32

Um número com sinal que indica os valores relativos da instância e do objeto.A signed number that indicates the relative values of the instance and the object.

Valor de retornoReturn Value CondiçãoCondition
Menor que zeroLess than zero Esta instância é menor do que o objeto.This instance is less than the object.
ZeroZero Esta instância é igual ao objeto.This instance is the same as the object.
Maior que zeroGreater than zero Esta instância é maior do que o objetoThis instance is greater than the object - ou --or- O objeto é uma referência nula (Nothing no Visual Basic)The object is a null reference (Nothing in Visual Basic)

Aplica-se a

CompareTo(Object)

Compara esta instância SqlSingle com o Object fornecido e retorna uma indicação de seus valores relativos.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);
public int CompareTo (object? value);
abstract member CompareTo : obj -> int
override this.CompareTo : obj -> int
Public Function CompareTo (value As Object) As Integer

Parâmetros

value
Object

O Object a ser comparado.The Object to be compared.

Retornos

Int32

Um número com sinal que indica os valores relativos da instância e do objeto.A signed number that indicates the relative values of the instance and the object.

Valor retornadoReturn value CondiçãoCondition
Menor que zeroLess than zero Esta instância é menor do que o objeto.This instance is less than the object.
ZeroZero Esta instância é igual ao objeto.This instance is the same as the object.
Maior que zeroGreater than zero Esta instância é maior do que o objetoThis instance is greater than the object - ou --or- O objeto é uma referência nula (Nothing no Visual Basic)The object is a null reference (Nothing in Visual Basic)

Implementações

Aplica-se a