Microsoft Identity Integration Server 2003 Developer Reference

ExchangeUtils.CreateMailEnabledUser (ConnectedMA, ReferenceValue, String, String, Boolean)

The CreateMailEnabledUser(ConnectedMA,ReferenceValue,String,String,Boolean) method creates a mail-enabled user in Exchange Server 2000 or a mail-enabled INetOrgPerson in Exchange Server 2003.
[C#]
public CSEntry CreateMailEnabledUser(
  ConnectedMA TargetADMA,
  ReferenceValue DistinguishedName,
  String Alias,
  String SMTPEmail,
  Boolean Exchange2003InetOrgPerson
);
[Visual Basic .NET]
Public Function CreateMailEnabledUser( _
  ByVal TargetADMA As ConnectedMA, _
  ByVal DistinguishedName As ReferenceValue, _
  ByVal Alias As String, _
  ByVal SMTPEmail As String, _
  ByVal Exchange2003InetOrgPerson As Boolean _
) As CSEntry
Implements ExchangeUtils.CreateMailEnabledUser

Parameters

TargetADMA
The Active Directory management agent through which the new object is provisioned.
DistinguishedName
The distinguished name of the user.
Alias
The mail alias of the user.
SMTPEmail
The SMTP address of the user.
Exchange2003InetOrgPerson
If this argument is true, this method creates an Exchange 2003 INetOrgPerson user; if this argument is false, this method creates an Exchange 2000 user.

Return Values

Returns a CSEntry representing the connected data source entry.

Exceptions

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.

Requirements

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: Mail-Enabled User, CSEntry, ExchangeUtils