Share via


LocalAlertManager.EvaluateAlerts Method ()

 

Starts a health evaluation cycle on the local computer by using a scheduled task.

Namespace:   Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework
Assembly:  AlertFramework (in AlertFramework.dll)

Syntax

public void EvaluateAlerts()
public:
void EvaluateAlerts()
Public Sub EvaluateAlerts

Exceptions

Exception Condition
AlertProviderException

Communication or connection errors occurred when calling the Alert Provider.

InvalidOperationException

The method was called from the Windows UI thread

Remarks

Evaluates the alert conditions in the health definition per the schedule that is defined in the health definition feature configuration file.

Examples

The following code example shows how to start a health evaluation cycle:

LocalAlertManager localAlertManager = new LocalAlertManager();
localAlertManager.EvaluateAlerts();

See Also

LocalAlertManager Class
Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework Namespace

Return to top