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: 1.0.0.0 (1.0.0.0)
Syntax
[OperationContractAttribute]
WsResult EnqueueDeleteJelasticAccount(
	EnqueueDeleteJelasticAccountRequest request
)

Parameters

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.
Examples
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;
        else
        {
            this.LogError("EnqueueDeleteJelasticAccount", result);
            throw new CodedException(this.GetErrorCode(result.ResultCode), result.ResultMessage);
        }
    }
}
See Also