Click or drag to resize

IWsJelasticEnqueueDeleteJelasticAccount Method

The method Enqueues a new Jelastic account deleting request.

Namespace:  Aruba.Cloud.WsJelastic
Assembly:  WsJelastic (in WsJelastic.dll) Version: (
WsResult EnqueueDeleteJelasticAccount(
	EnqueueDeleteJelasticAccountRequest request


Type: Aruba.Cloud.WsJelastic.RequestsEnqueueDeleteJelasticAccountRequest
A EnqueueDeleteJelasticAccountRequest object describing the Jelastic account to delete

Return Value

Type: WsResult
EnqueueDeleteJelasticAccountRequest object describing the Jelastic account to delete. if EnqueueDeleteJelasticAccountRequest.reconsideration is true, the account is not deleted immediatly.
The following example describes a method, called CreateJelasticAccount, which does a call to EnqueueCreationJelasticAccount on Aruba WsJelastic, The method requests a new account creation.
public bool JelasticAccountDelete(int accountID, bool reconsideration)
    //creating the request object:
    var request = new EnqueueDeleteJelasticAccountRequest()
        JelasticAccountId = accountID,
        Reconsideration = reconsideration //bool

    //sending the request
    using (var client = this.WsJelasticClient)
        var result = client.EnqueueDeleteJelasticAccount(request);

        //result.Success is true on Success, false on failure
        if (result.Success)
            return result.Success;
            this.LogError("EnqueueDeleteJelasticAccount", result);
            throw new CodedException(this.GetErrorCode(result.ResultCode), result.ResultMessage);
See Also