ABPersonInstantMessageKey Class
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.
Contains keys for instant-messaging information stored in an Address Book person record.
public static class ABPersonInstantMessageKey
type ABPersonInstantMessageKey = class
- Inheritance
-
ABPersonInstantMessageKey
Remarks
A single 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.
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);
Properties
| Name | Description |
|---|---|
| Service |
Gets the key for an instant-messaging service identifier. |
| Username |
Gets the key for an instant-messaging user name. |