HostedEmailManager.BeginCreateAccount Method (String, String, EmailAccountInfo, EventHandler<OperationInvokeEventArgs<EmailAccountInfo>>)
Asynchronous call to create a new email account.
Namespace: Microsoft.WindowsServerSolutions.HostedEmail
Assembly: Wssg.HostedEmailObjectModel (in Wssg.HostedEmailObjectModel.dll)
Syntax
public void BeginCreateAccount(
string wssUserName,
string password,
EmailAccountInfo accountInfo,
EventHandler<OperationInvokeEventArgs<EmailAccountInfo>> completeHandler
)
public:
void BeginCreateAccount(
String^ wssUserName,
String^ password,
EmailAccountInfo^ accountInfo,
EventHandler<OperationInvokeEventArgs<EmailAccountInfo^>^>^ completeHandler
)
Public Sub BeginCreateAccount (
wssUserName As String,
password As String,
accountInfo As EmailAccountInfo,
completeHandler As EventHandler(Of OperationInvokeEventArgs(Of EmailAccountInfo))
)
Parameters
wssUserName
Type: System.StringWindows Server user name.
password
Type: System.StringPassword of the email account to create.
accountInfo
Type: Microsoft.WindowsServerSolutions.HostedEmail.EmailAccountInfoEmail account information for the email account to create.
completeHandler
Type: System.EventHandler<OperationInvokeEventArgs<EmailAccountInfo>>Complete handler for the asynchronous call.
Remarks
The result of the method call is passed by the complete handler. The OperationInvokeError<T0>.Error indicates whether there was an exception thrown out during the operation. If this value is not null, the same exception will be thrown when accessing OperationInvokeEventArgs<T0>.Result.
OperationInvokeEventArgs<T0>.Result is the information describing the newly-created email account.
The HostedEmailAccountUpdated event is raised if the account is created successfully.
See Also
HostedEmailManager Class
Microsoft.WindowsServerSolutions.HostedEmail Namespace
Return to top