Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

KeysConverter::Compare Method (Object^, Object^)

 

Compares two key values for equivalence.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
virtual int Compare(
	Object^ a,
	Object^ b
) sealed

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::Int32

An 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.

This method uses String::Compare to compare the two objects.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft