Click or drag to resize

IWsEndUserSetEnqueueRemoveSharedStorage Method

By the method SetEnqueueRemoveSharedStorage you can delete a network storage

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 SetEnqueueRemoveSharedStorage(
	EnqueueRemoveSharedStorageRequest operationRequest
)

Parameters

operationRequest
Type: Aruba.Cloud.Provisioning.Entities.SharedStorageEnqueueRemoveSharedStorageRequest

Return Value

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

    StringBuilder stringBuilder = new StringBuilder();

    try
    {
        // create the object EnqueueRemoveSharedStorageRequest  for the request 
        // with data to process
        EnqueueRemoveSharedStorageRequest request =
             new EnqueueRemoveSharedStorageRequest();
        request.SharedStorageID = storageId;

        // call method SetAddServerScheduledOperation 
        // obtaining a WsResult item
        WsResult result =
            client.SetEnqueueRemoveSharedStorage(request);

        //if the call is Success print history values
        if (result.Success)
        {
            // get Value returned from server
            stringBuilder.Append(" Operation 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