Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Asynchronous call to bind a Windows Server 2012 Essentials server user with an email account ID.
Namespace:   Microsoft.WindowsServerSolutions.HostedEmail
Assembly:  Wssg.HostedEmailObjectModel (in Wssg.HostedEmailObjectModel.dll)
Syntax
public void BeginAssignAccount(
    string wssUserName,
    string accountId,
    EventHandler<OperationInvokeEventArgs<bool>> completeHandler
)
public:
void BeginAssignAccount(
    String^ wssUserName,
    String^ accountId,
    EventHandler<OperationInvokeEventArgs<bool>^>^ completeHandler
)
Public Sub BeginAssignAccount (
    wssUserName As String,
    accountId As String,
    completeHandler As EventHandler(Of OperationInvokeEventArgs(Of Boolean))
)
Parameters
- wssUserName 
 Type: System.String- Name of the user account. 
- accountId 
 Type: System.String- ID of the email account. 
- completeHandler 
 Type: System.EventHandler<OperationInvokeEventArgs<Boolean>>- 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 a boolean value that indicates if the method call succeeded or failed.
The HostedEmailAccountUpdated event is raised if the account is assigned successfully.
See Also
HostedEmailManager Class
Microsoft.WindowsServerSolutions.HostedEmail Namespace
Return to top