How to access MAPI Address Books by using Collaboration Data Objects 1.x (172093)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Outlook 98
- Microsoft Outlook 2000
- Microsoft Outlook 2002
- Microsoft Office Outlook 2003
- Microsoft Exchange Server 5.5
- Microsoft Exchange Server 2003 Standard Edition
- Microsoft Exchange Server 2003 Enterprise Edition
- Collaboration Data Objects (CDO)
- Collaboration Data Objects (CDO) 1.1
- Collaboration Data Objects (CDO) 1.21
This article was previously published under Q172093 SUMMARYCollaboration Data Objects (CDO) 1.1 supports programmatic access to MAPI Address Books
through the AddressEntries collection of an AddressList object. Each
AddressList object corresponds to a MAPI Address Book and is a member of
the AddressLists collection of the Session object.
The available Address
Books can be enumerated by walking the AddressLists collection, and an
individual address book can be selected by indexing the AddressLists
collection by name or by position.
The following sample code walks the AddressLists
collection, and displays information about each address book that can be accessed. The
second part of the sample selects the global address list (GAL) and then walks
the Address Entries, recursively expanding Distribution Lists.REFERENCES
Documentation for Active Messaging is available in the Microsoft Developer Network (MSDN) Library under the following topics: - SDK
Documentation
- Platform SDK
- Databases and Messaging Services
- Active
Messaging
For more information about how to obtain Collaboration Data Objects Libraries, click the following article number to view the article in the Microsoft Knowledge Base:
171440
Where to acquire the CDO Libraries (all versions)
Modification Type: | Minor | Last Reviewed: | 1/13/2006 |
---|
Keywords: | kbhowto kbProgramming KB172093 |
---|
|