IWsMonitoringSetRemoveMonitoringCheckContacts Method |
Namespace: Aruba.Cloud.WsMonitoring
[OperationContractAttribute] WsResult SetRemoveMonitoringCheckContacts( RemoveMonitoringCheckContactsEntity removeMonitoringCheckContactsEntity )
/// WsMonitoring.SetRemoveMonitoringCheckContacts Method (c# .NET) public static string SetRemoveMonitoringCheckContacts(WsMonitoringClient client, RemoveMonitoringCheckContactsEntity removeMonitoringCheckContactsEntity) { //specify the account login details client.ClientCredentials.UserName.UserName = "ARU-0000"; client.ClientCredentials.UserName.Password = "0123456789"; StringBuilder stringBuilder = new StringBuilder(); try { // call method SetRemoveMonitoringCheckContacts // obtaining a WsResult item WsResult result = client.SetRemoveMonitoringCheckContacts (removeMonitoringCheckContactsEntity); //if the call is Success print value 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(); }