ExchangeUtils.Create55Mailbox Method
Creates a mailbox in Microsoft Exchange Server 5.5.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in Microsoft.MetadirectoryServicesEx.dll)
Usage
'Usage
Dim TargetExchange55MA As ConnectedMA
Dim DistinguishedName As ReferenceValue
Dim Alias As String
Dim DisplayName As String
Dim SMTPEmail As String
Dim ORAddress As String
Dim HomeMDB As String
Dim HomeMTA As String
Dim AssocNTAccount As Byte()
Dim returnValue As CSEntry
returnValue = ExchangeUtils.Create55Mailbox(TargetExchange55MA, DistinguishedName, Alias, DisplayName, SMTPEmail, ORAddress, HomeMDB, HomeMTA, AssocNTAccount)
Syntax
'Declaration
Public Shared Function Create55Mailbox ( _
TargetExchange55MA As ConnectedMA, _
DistinguishedName As ReferenceValue, _
Alias As String, _
DisplayName As String, _
SMTPEmail As String, _
ORAddress As String, _
HomeMDB As String, _
HomeMTA As String, _
AssocNTAccount As Byte() _
) As CSEntry
public static CSEntry Create55Mailbox (
ConnectedMA TargetExchange55MA,
ReferenceValue DistinguishedName,
string Alias,
string DisplayName,
string SMTPEmail,
string ORAddress,
string HomeMDB,
string HomeMTA,
byte[] AssocNTAccount
)
public:
static CSEntry^ Create55Mailbox (
ConnectedMA^ TargetExchange55MA,
ReferenceValue^ DistinguishedName,
String^ Alias,
String^ DisplayName,
String^ SMTPEmail,
String^ ORAddress,
String^ HomeMDB,
String^ HomeMTA,
array<unsigned char>^ AssocNTAccount
)
public static CSEntry Create55Mailbox (
ConnectedMA TargetExchange55MA,
ReferenceValue DistinguishedName,
String Alias,
String DisplayName,
String SMTPEmail,
String ORAddress,
String HomeMDB,
String HomeMTA,
byte[] AssocNTAccount
)
public static function Create55Mailbox (
TargetExchange55MA : ConnectedMA,
DistinguishedName : ReferenceValue,
Alias : String,
DisplayName : String,
SMTPEmail : String,
ORAddress : String,
HomeMDB : String,
HomeMTA : String,
AssocNTAccount : byte[]
) : CSEntry
Parameters
- TargetExchange55MA
The Exchange 5.5 management agent through which the new object is provisioned.
- DistinguishedName
The distinguished name of the mailbox.
- Alias
The e-mail alias of the mailbox.
- DisplayName
The name that is displayed for the mailbox.
- SMTPEmail
The SMTP address of the mailbox.
- ORAddress
The primary X.400 address for the recipient.
- HomeMDB
The location of the mailbox store.
- HomeMTA
The location of the message transfer agent.
- AssocNTAccount
The security descriptor of the user account that is associated with the mailbox.
Return Value
Returns a CSEntry object that represents the connected data source entry.
Exceptions
Exception type | Condition |
---|---|
System.ArgumentException | A required parameter is not present. |
System.ArgumentNullException | A required parameter is null. |
AttributeNotInInclusionListException | A required attribute is not selected in the management agent. |
System.InvalidOperationException | You tried to create the same custom recipient more than once in the Provision method. This method is called for each metaverse object when a metaverse rules extension exists. |
NoSuchObjectTypeException | The object type that is referenced is not in the schema. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Target Platforms
See Also
Reference
ExchangeUtils Class
ExchangeUtils Members
Microsoft.MetadirectoryServices Namespace
CSEntry Class
ExchangeUtils Class