Working with the Office Communicator Contact List

The IMessengerContacts interface provides access to the user’s contact list in Office Communicator 2007 R2, as well as the ability to remove contacts from the contact list. You use the Messenger class to add contacts to the contact list.

Messenger.MyContacts Property

A call to the Messenger.MyContacts property returns an instance of the IMessengerContacts interface. For example, the following code gets an instance of IMessengerContacts by using the Messenger class.

_messenger = new Messenger();

IMessengerContacts _contacts = (IMessengerContacts)
    _messenger.MyContacts;

IMessengerContacts.Item() Method

The IMessengerContacts interface provides a collection of IMessengerContactAdvanced instances, one for ...

Get Programming for Unified Communications with Microsoft® Office Communications Server 2007 R2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.