Click or drag to resize

IWsEndUserSetEnqueuePrivateCloudDeletion Method

By the method SetEnqueuePrivateCloudDeletion you can delete a private cloud

Namespace:  Aruba.Cloud.WsEndUser
Assembly:  Aruba.Cloud.WsEndUser (in Aruba.Cloud.WsEndUser.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[OperationContractAttribute]
WsResult SetEnqueuePrivateCloudDeletion(
	int privateCloudID,
	bool Now
)

Parameters

privateCloudID
Type: SystemInt32
Now
Type: SystemBoolean

Return Value

Type: WsResult
Examples
        /// IWsEndUser.SetEnqueuePrivateCloudDeletion Method (c# .NET)
public static string SetEnqueuePrivateCloudDeletion(WsEndUserClient client,
     int privateCloudID)
{
    //specify the account login details 
    client.ClientCredentials.UserName.UserName = "ARU-0000";
    client.ClientCredentials.UserName.Password = "0123456789";

    StringBuilder stringBuilder = new StringBuilder();

    try
    {
    // call method SetEnqueuePrivateCloudDeletion 
    // obtaining a WsResultOfint item
    WsResult result = client.SetEnqueuePrivateCloudDeletion(privateCloudID);

    //if the call is Success print value
    if (result.Success)
    {
        // get Value returned from server
        stringBuilder.Append(" Operation ends successfully. Result Code : ");
        stringBuilder.Append(result.ResultCode);
    }
    else
    {
        throw new ApplicationException(result.ResultMessage);
    }
    }
    catch (Exception ex)
    {
    // re-run the error
    throw new ApplicationException(ex.Message);
    }

    return stringBuilder.ToString();
}
See Also