IWsCloudStorageSetEnableCloudStorageAccount Method |
Namespace: Aruba.Cloud.WsCloudStorage
[OperationContractAttribute] WsResult SetEnableCloudStorageAccount( int cloudStorageAccountID )
//WsCloudStorage.SetEnableCloudStorageAccount Method (c# .NET) private static void SetEnableCloudStorageAccount(WsCloudStorageClient client, int cloudStorageAccountId) { //specify the account login details client.ClientCredentials.UserName.UserName = "ARU-0000"; client.ClientCredentials.UserName.Password = "1234567890"; try { //call method SetEnableCloudStorageAccount, //obtaining a WsResult item WsResult result = client.SetEnableCloudStorageAccount(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); } }