HostedEmailManager.BeginUpdateAccount Method (String, EmailAccountInfo, EventHandler<OperationInvokeEventArgs<Boolean>>)
Asynchronous call to update email account.
Namespace: Microsoft.WindowsServerSolutions.HostedEmail
Assembly: Wssg.HostedEmailObjectModel (in Wssg.HostedEmailObjectModel.dll)
Syntax
public void BeginUpdateAccount(
string wssUserName,
EmailAccountInfo accountInfo,
EventHandler<OperationInvokeEventArgs<bool>> completeHandler
)
public:
void BeginUpdateAccount(
String^ wssUserName,
EmailAccountInfo^ accountInfo,
EventHandler<OperationInvokeEventArgs<bool>^>^ completeHandler
)
Public Sub BeginUpdateAccount (
wssUserName As String,
accountInfo As EmailAccountInfo,
completeHandler As EventHandler(Of OperationInvokeEventArgs(Of Boolean))
)
Parameters
wssUserName
Type: System.StringName of the Windows Server user.
accountInfo
Type: Microsoft.WindowsServerSolutions.HostedEmail.EmailAccountInfoThe account information of the email account to update.
completeHandler
Type: System.EventHandler<OperationInvokeEventArgs<Boolean>>Complete handler for the asynchronous call.
Remarks
Do not use the EmailAccountInfo.AccountId property to specify the email account. Instead, the method retrieves the email account by identifying the email account bound to the user specified in wssUserName.
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 a boolean value that indicates if the method call succeeded or failed.
HostedEmailAccountUpdated is raised if the account is successfully unbound.
See Also
HostedEmailManager Class
Microsoft.WindowsServerSolutions.HostedEmail Namespace
Return to top