Düzenle

Aracılığıyla paylaş


ABAddressFormatting Class

Definition

Utility class that formats one of the NSDictionary returned by the GetVCards(ABPerson[]) method.

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.None, "Use the 'Contacts' API instead.")]
public static class ABAddressFormatting
type ABAddressFormatting = class
Inheritance
ABAddressFormatting
Attributes

Remarks

This class works with the NSDictionarys that are returned by the GetVCards(ABPerson[]) method, as shown in the following example:

NSError err;
var ab = ABAddressBook.Create(out err);
if(err == null && ABAddressBook.GetAuthorizationStatus() == ABAuthorizationStatus.Authorized)
{
	var person = ab.GetPeople()[0];
	var address = person.GetAddresses()[0];
	var formattedAddress = ABAddressFormatting.ToString(address.Value, false);
}

Methods

ToString(NSDictionary, Boolean)

Applies to