Microsoft Identity Integration Server 2003 Developer Reference

ExchangeUtils.CreateMailbox (ConnectedMA, ReferenceValue, String, String, Byte[])

The CreateMailbox(ConnectedMA,ReferenceValue,String,String,Byte[]) method creates a resource mailbox in Exchange Server 2000 or Exchange Server 2003.
public CSEntry CreateMailbox(
  ConnectedMA TargetADMA,
  ReferenceValue DistinguishedName,
  String Alias,
  String HomeMDB,
  Byte[] LogonAccountSID
[Visual Basic .NET]
Public Function CreateMailbox( _
  ByVal TargetADMA As ConnectedMA, _
  ByVal DistinguishedName As ReferenceValue, _
  ByVal Alias As String, _
  ByVal HomeMDB As String, _
  ByVal LogonAccountSID As Byte[] _
) As CSEntry
Implements ExchangeUtils.CreateMailbox


The Active Directory management agent through which the new object is provisioned.
The distinguished name of the mailbox.
The mail alias of the mailbox.
The location of the mailbox store.
The security identifier for the account.

Return Values

Returns a CSEntry representing the connected data source entry.


Exception type Condition
ArgumentException A required parameter is not present.
ArgumentNullException A required parameter is null.
AttributeNotInInclusionListException A required attribute is not selected in the management agent.
InvalidOperationException You attempted to create the same custom recipient more than once in the IMVSynchronization.Provision method. This method is called for each metaverse object when a metaverse rules extension exists.
NoSuchObjectTypeException The object type referenced is not in the schema.


Product: Microsoft Identity Integration Server 2003
Namespace: Defined in Microsoft.MetadirectoryServices.
Assembly: Requires Microsoft.MetadirectoryServices (in Microsoft.MetadirectoryServices.dll).
.NET Framework: Requires .NET Framework 1.1.

See Also

Example: Resource Mailbox, CSEntry, ExchangeUtils