Microsoft Identity Integration Server 2003 Developer Reference |
[C#]
public CSEntry CreateMailbox(
ConnectedMA TargetADMA,
ReferenceValue DistinguishedName,
String Alias,
String HomeMDB,
long StoreQuota,
long OverQuotaLimit,
long HardLimit,
Byte[] LogonAccountSID,
Boolean Exchange2003InetOrgPerson
);
[Visual Basic .NET]
Public Function CreateMailbox( _
ByVal TargetADMA As ConnectedMA, _
ByVal DistinguishedName As ReferenceValue, _
ByVal Alias As String, _
ByVal HomeMDB As String, _
ByVal StoreQuota As long, _
ByVal OverQuotaLimit As long, _
ByVal HardLimit As long, _
ByVal LogonAccountSID As Byte[], _
ByVal Exchange2003InetOrgPerson As Boolean _
) As CSEntry
Exception type | Condition |
---|---|
ArgumentException | A required parameter is not present. |
ArgumentNullException | A required parameter is null. |
ArgumentOutOfRangeException | A limit is too large or too small. |
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. |
To use the default mailbox limits, set StoreQuota, OverQuotaLimit, and HardLimit to 0 (zero).
You can create the following Exchange objects with this method.
Object | Method call |
---|---|
Exchange 2000 or Exchange 2003 mailbox | CreateMailbox(TargetADMA, DistinguishedName, Alias, HomeMDB, 0, 0, 0, null, false) |
Exchange 2000 or Exchange 2003 mailbox with limits | CreateMailbox(TargetADMA, DistinguishedName, Alias, HomeMDB, StoreQuota, OverQuotaLimit, HardLimit, null, false) |
Exchange 2000 or Exchange 2003 resource mailbox | CreateMailbox(TargetADMA, DistinguishedName, Alias, HomeMDB, 0, 0, 0, LogonAccountSID, false) |
Exchange 2000 or Exchange 2003 resource mailbox with limits | CreateMailbox(TargetADMA, DistinguishedName, Alias, HomeMDB, StoreQuota, OverQuotaLimit, HardLimit, LogonAccountSID, false) |
Exchange 2003 InetOrgPerson with limits | CreateMailbox(TargetADMA, DistinguishedName, Alias, HomeMDB, StoreQuota, OverQuotaLimit, HardLimit, LogonAccountSID, true) |
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.