IWsEndUserSetEnqueueLoadBalancerDeletion Method |
Namespace: Aruba.Cloud.WsEndUser
[OperationContractAttribute] WsResult SetEnqueueLoadBalancerDeletion( int loadBalancerID )
/// IWsEndUser.SetEnqueueLoadBalancerDeletion Method (c# .NET) public static string SetEnqueueLoadBalancerDeletion(WsEndUserClient client, int loadBalancerID) { //specify the account login details client.ClientCredentials.UserName.UserName = "ARU-0000"; client.ClientCredentials.UserName.Password = "0123456789"; StringBuilder stringBuilder = new StringBuilder(); try { // call method SetEnqueueLoadBalancerDeletion // obtaining a WsResult item WsResult result = client.SetEnqueueLoadBalancerDeletion(loadBalancerID); //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(); }