Skip to content

IAdmExchangeQueries

The IAdmExchangeQueries interface provides methods that can be used to query Exchange-related information from Active Directory.

Inheritance: The IAdmExchangeQueries interface inherits from the IUnknown interface.

Methods

Details

GetNextMailboxStorageDatabase()

Returns the next Exchange storage database that must be used to create a mailbox.

IAdmExchangeStorageDatabase GetNextMailboxStorageDatabase(ADM_MAILBOXSTORAGESELECTIONTYPE_ENUM selectionType,
                                                          String[] allowedMailboxStorageDatabases,
                                                          IAdmTop targetObject)

Parameters

  • selectionType - Specifies a value indicating how a mailbox storage database must be selected for a new mailbox.
  • allowedMailboxStorageDatabases - Specifies the list of globally unique identifiers (GUIDs) of Exchange storage databases that are allowed to hold mailboxes for the target object.
  • targetObject - Specifies the ADSI object for which the mailbox will be created.

NotifyMailBoxStorageDataBaseIsUsed()

Notifies that a certain Exchange storage database was used to create a mailbox. Clients must notify about using the Exchange storage database to allow the Exchange Mailbox Database Property Pattern item generate the Exchange storage database for the next object.

void NotifyMailBoxStorageDataBaseIsUsed(ADM_MAILBOXSTORAGESELECTIONTYPE_ENUM selectionType,
                                        String[] allowedMailboxStorageDatabases,
                                        IAdmTop targetObject,
                                        IAdmExchangeStorageDatabase storageDatabase)

Parameters

  • selectionType - Specifies a value indicating how a mailbox storage database must be selected for a new mailbox.
  • allowedMailboxStorageDatabases - Specifies the list of globally unique identifiers (GUIDs) of Exchange storage databases that are allowed to hold mailboxes for the target object.
  • targetObject - Specifies the ADSI object for which a mailbox was created.
  • storageDatabase - Specifies the Exchange storage database that was used to create the mailbox.

Requirements

Minimum required version: 2010.2

See also