Click or drag to resize

IWsJelasticEnqueueModifyEmailJelasticAccount Method

Modify the email of an existing Jelastic account.

Namespace:  Aruba.Cloud.WsJelastic
Assembly:  WsJelastic (in WsJelastic.dll) Version: (
WsResult EnqueueModifyEmailJelasticAccount(
	EnqueueModifyEmailJelasticAccountRequest request


Type: Aruba.Cloud.WsJelastic.RequestsEnqueueModifyEmailJelasticAccountRequest
A EnqueueModifyEmailJelasticAccountRequest object describing the new email address for the Jelastic account

Return Value

Type: WsResult
The following example describes a method, called JelasticAccountEmailChange, which does a call to EnqueueModifyEmailJelasticAccount on Aruba WsJelastic, The method requests the email change on the account specified
public bool JelasticAccountEmailChange(int accountID, string email)
    //creating request
    var request = new EnqueueModifyEmailJelasticAccountRequest()
        Email = email,
        JelasticAccountId = accountID

    //sending request
    using (var client = this.WsJelasticClient)
        var result = client.EnqueueModifyEmailJelasticAccount(request);
        //result.Success is true on Success, false on failure
        if (result.Success)
            return result.Success;
            this.LogError("EnqueueModifyEmailJelasticAccount", result);
            throw new CodedException(this.GetErrorCode(result.ResultCode), result.ResultMessage);
See Also