IWsCloudStorageSetDeleteCloudStorageAccount Method |
Namespace: Aruba.Cloud.WsCloudStorage
[OperationContractAttribute] WsResult SetDeleteCloudStorageAccount( int cloudStorageAccountID, bool now )
//WsCloudStorage.SetDeleteCloudStorageAccount Method (c# .NET) private static void SetDeleteCloudStorageAccount(WsCloudStorageClient client, int cloudStorageAccountId) { //specify the account login details client.ClientCredentials.UserName.UserName = "ARU-0000"; client.ClientCredentials.UserName.Password = "1234567890"; try { //call method SetDeleteCloudStorageAccount, //obtaining a WsResult item WsResult result = client.SetDeleteCloudStorageAccount(cloudStorageAccountId); //if the call is not successful, re-run the error indicating the message if (!result.Success) { throw new Exception(result.ResultMessage); } } catch (Exception ex) { //re-run the error throw new Exception(ex.Message); } }