KeysConverter::Compare Method (Object^, Object^)
.NET Framework (current version)
Compares two key values for equivalence.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- a
-
Type:
System::Object^
An Object that represents the first key to compare.
- b
-
Type:
System::Object^
An Object that represents the second key to compare.
Return Value
Type: System::Int32An integer indicating the relationship between the two parameters.
Value Type | Condition |
|---|---|
A negative integer. | a is less than b. |
zero | a equals b. |
A positive integer. | a is greater than b. |
Implements
IComparer::Compare(Object^, Object^)This method uses String::Compare to compare the two objects.
.NET Framework
Available since 1.1
Available since 1.1
Show: