ABPerson.IComparable.CompareTo(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 this instance with the specified
ABPerson and returns an
integer that indicates whether this instance precedes, follows,
or appears in the same position in the sort order as
o
.
int IComparable.CompareTo (object o);
Parameters
- o
- Object
The T:System.Object to compare to this instance.
Returns
A T:System.Int32 that indicates
whether this instance precedes, follows,
or appears in the same position in the sort order as
o
.
Value | Condition |
---|---|
Less than zero |
This instance precedes o .
|
Zero |
This instance has the same position in the sort order as
o .
|
Greater than zero |
This instance follows o .
|