MonoTouch.AddressBook.ABPersonInstantMessageKey Class
MonoTouch.Foundation.NSDictionary keys for use with MonoTouch.AddressBook.ABPerson instant message services.

See Also: ABPersonInstantMessageKey Members

Syntax

public static class ABPersonInstantMessageKey

See Also

ABPerson.GetInstantMessages
ABPerson.SetInstantMessages(ABMultiValue<MonoTouch.Foundation.NSDictionary>)

Remarks

A single MonoTouch.Foundation.NSDictionary instance stores information regarding a single instant message service, with the dictionary keys and values holding information about different parts of the instant message service.

C# Example

NSDictionary instantMessage = NSDictionary.FromObjectsAndKeys(
    new NSObject[]{
        ABPersonInstantMessageService.Jabber,
        new NSString ("user@example.org"),
    },
    new NSObject[]{
        ABPersonInstantMessageKey.Service,
        ABPersonInstantMessageKey.Username,
    }
);
ABMutableDictionaryMultiValue instantMessages = new ABMutableDictionaryMultiValue() {
    { address, ABLabel.Home },
};
ABPerson person = GetMeSomePerson();
person.SetInstantMessages(addresses);

Requirements

Namespace: MonoTouch.AddressBook
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0