KeysConverter.Compare(Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compares two key values for equivalence.
public:
virtual int Compare(System::Object ^ a, System::Object ^ b);
public int Compare (object a, object b);
public int Compare (object? a, object? b);
abstract member Compare : obj * obj -> int
override this.Compare : obj * obj -> int
Public Function Compare (a As Object, b As Object) As Integer
Parameters
Returns
An integer indicating the relationship between the two parameters.
Value Type | Condition |
---|---|
A negative integer. | a is less than b .
|
0 | a equals b .
|
A positive integer. | a is greater than b .
|
Implements
Remarks
This method uses String.Compare to compare the two objects.
Applies to
See also
Colaborar con nosotros en GitHub
El origen de este contenido se puede encontrar en GitHub, donde también puede crear y revisar problemas y solicitudes de incorporación de cambios. Para más información, consulte nuestra guía para colaboradores.