AddressBook.ABPerson.CompareTo Method
Compares this instance with the specified AddressBook.ABPerson and returns an integer that indicates whether this instance precedes, follows, or appears in the same position in the sort order as other (as controlled by ordering).

Syntax

public int CompareTo (ABPerson other, ABPersonSortBy ordering)

Parameters

other
The AddressBook.ABPerson to compare to this instance.
ordering
A AddressBook.ABPersonSortBy which is used to specify whether ordering should be done by ABPersonSortBy.FirstName or ABPersonSortBy.LastName.

Returns

A int that indicates whether this instance precedes, follows, or appears in the same position in the sort order as other.

ValueCondition
Less than zero This instance precedes other.
Zero This instance has the same position in the sort order as other.
Greater than zero This instance follows other.

Remarks

Requirements

Namespace: AddressBook
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0