Click or drag to resize

IWsMonitoringSetRemoveMonitoringCheckContacts Method

By the method SetRemoveMonitoringCheckContacts you can remove a contacts of the check
By the method SetRemoveMonitoringCheckContacts you can remove a contacts of the check

Namespace:  Aruba.Cloud.WsMonitoring
Assembly:  Aruba.Cloud.WsMonitoring (in Aruba.Cloud.WsMonitoring.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[OperationContractAttribute]
WsResult SetRemoveMonitoringCheckContacts(
	RemoveMonitoringCheckContactsEntity removeMonitoringCheckContactsEntity
)

Parameters

removeMonitoringCheckContactsEntity
Type: Aruba.Cloud.Provisioning.Entities.MonitoringSLARemoveMonitoringCheckContactsEntity
Type RemoveMonitoringCheckContactsEntity: contains the parameters to remove a contact from a control.Type RemoveMonitoringCheckContactsEntity: contains the parameters to remove a contact from a control.

Return Value

Type: WsResult
Examples
By the method SetRemoveMonitoringCheckContacts you can remove a contacts of the check.
/// 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();
}
See Also