次の方法で共有


ABAddressFormatting クラス

定義

メソッドによってGetVCards(ABPerson[])返される のいずれかを書式設定するNSDictionaryユーティリティ クラス。

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

注釈

このクラスは、次の NSDictionary例に示すように、 メソッドによって GetVCards(ABPerson[]) 返される s で動作します。

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);
}

メソッド

ToString(NSDictionary, Boolean)

メソッドによってGetVCards(ABPerson[])返される のいずれかを書式設定するNSDictionaryユーティリティ クラス。

適用対象