ExchangeUtils::CreateMailbox Method
ExchangeUtils::CreateMailbox Method

The CreateMailbox(ConnectedMA,ReferenceValue,String,String) method creates a mailbox in Exchange Server 2000 or Exchange Server 2003.

Syntax

public CSEntry CreateMailbox(
  ConnectedMA TargetADMA,
  ReferenceValue DistinguishedName,
  String Alias,
  String HomeMDB
);


Public Function CreateMailbox( _
  ByVal TargetADMA As ConnectedMA, _
  ByVal DistinguishedName As ReferenceValue, _
  ByVal Alias As String, _
  ByVal HomeMDB As String _
) As CSEntry
Implements ExchangeUtils.CreateMailbox

Parameters

TargetADMA

The Active Directory management agent through which the new object is provisioned.

DistinguishedName

The distinguished name of the mailbox.

Alias

The mail alias of the mailbox.

HomeMDB

The location of the mailbox store.

Return Value

Returns a CSEntry representing the connected data source entry.

Exceptions

Exception typeCondition
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.

Requirements

ProductILM 2007 FP1
NamespaceMicrosoft.MetadirectoryServices
AssemblyMicrosoft.MetadirectoryServices
.NET Framework.NET Framework 2.0

See Also

Example: Mailbox
CSEntry
ExchangeUtils


Send comments about this topic to Microsoft

Build date: 2/16/2009

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View