IAdmMailboxStoragePropertyPatternItem
The IAdmMailboxStoragePropertyPatternItem interface represents a property pattern entry for the Mailbox database property.
Inheritance: IAdmPropertyPatternItem
Methods
-
Method
-
Description
-
GetNextMailboxStorageDatabase()
-
Returns the next Exchange database that must be used to create a mailbox.
-
NotifyMailBoxStorageDataBaseIsUsed()
-
Notifies that a certain Exchange database was used to create a mailbox.
Properties
-
Property
-
Description
-
MailboxStorageSelectionType
-
Gets or sets a value indicating how a mailbox database must be selected for a new mailbox.
-
AllowedMailboxStorageDatabases
-
Gets or sets a list of globally unique identifiers (GUIDs) of Exchange databases that are allowed to hold new mailboxes.
Details
GetNextMailboxStorageDatabase()
Returns the next Exchange database that must be used to create a mailbox.
IAdmExchangeStorageDatabase GetNextMailboxStorageDatabase(IAdmTop targetObject)
Parameters
- targetObject – the ADSI object for which a mailbox is being created.
Exceptions
- NotSupportedException
- The
MailboxStorageSelectionTypeproperty is set toADM_MAILBOXSTORAGESELECTIONTYPE_NONE.
NotifyMailBoxStorageDataBaseIsUsed()
Notifies that a certain Exchange database was used to create a mailbox.
Call this method after creating an Exchange mailbox in a specific database to allow the property pattern item to generate which Exchange database to use for the next mailbox.
void NotifyMailBoxStorageDataBaseIsUsed(IAdmTop targetObject,
IAdmExchangeStorageDatabase storageDatabase)
Parameters
- targetObject – the ADSI object for which a mailbox was created.
- storageDatabase – the Exchange database that was used to create the mailbox.
MailboxStorageSelectionType
Gets or sets a value indicating how a mailbox database must be selected for a new mailbox.
- Type:
- ADM_MAILBOXSTORAGESELECTIONTYPE_ENUM
- Access:
- Read/Write
AllowedMailboxStorageDatabases
Gets or sets a list of globally unique identifiers of Exchange databases that are allowed to hold new mailboxes. If this property is not set, all available databases are allowed.
- Type:
- string[]
- Access:
- Read/Write
Requirements
Minimum required version: 2010.2