Article ID: 297390 - View products that this article applies to.
This article was previously published under Q297390
This article describes the advantages and disadvantages of the use of Active Directory Service Interfaces (ADSI) objects versus the use of Collaboration Data Objects (CDO) to query for the CDO for Exchange Management (CDOEXM) interfaces IMailboxStore, IMailRecipient, and IDistributionList for Active Directory and Exchange objects.
The CDOEXM library is a set of interfaces that expose properties and methods that enable the user to perform several Exchange recipient-related and Exchange Server-related tasks. For more information about what tasks you can perform, see the following MSDN Web page:
Recipient Management InterfacesThe interfaces in the CDOEXM library that expose recipient-related properties and methods are the following:
For example, to use a method on the IMailRecipient interface against an Active Directory user, first either an ADSI IADsUser or CDO.Person object must be created and bound to that user. Once this is accomplished, the IMailRecipient interface can be queried for on this object. The CDOEXM recipient management interfaces cannot be directly used to bind to an object.
NOTE: CDOEXM.dll is installed when you install the Exchange 2000 Management Tools.
Based on the tasks that you intend to perform through the use of the CDOEXM recipient-management interfaces and based on your familiarity with CDO or ADSI, you may decide which to use with CDOEXM. The following comparison may help you decide which to use.
Using ADSI Interfaces to Derive CDOEXM Interfaces
Advantages of Using ADSI
Disadvantages of Using ADSI
Using CDO Interfaces to Derive CDOEXM Interfaces
Advantages of Using CDO
Disadvantages of Using CDO
Recipient Management Interfaces
For additional information, click the article numbers below to view the articles in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/293339/EN-US/ )HOWTO: Create a Mail-Enabled User with CDOEXM in Visual C++
(http://support.microsoft.com/kb/297398/EN-US/ )HOWTO: Delete a Mailbox Using CDOEXM and Visual C++
(http://support.microsoft.com/kb/297393/EN-US/ )HOWTO: Programmatically Move an Exchange 2000 Mailbox Using CDOEXM in Visual C++
Article ID: 297390 - Last Review: August 18, 2005 - Revision: 4.4
Contact us for more help
Connect with Answer Desk for expert help.