SqlInt32.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(SqlInt32)

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

CompareTo(Object)

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

CompareTo(SqlInt32)

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

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

Parâmetros

value
SqlInt32

O SqlInt32 a ser comparado.The SqlInt32 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)

Aplica-se a

CompareTo(Object)

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