NetworkAlertManager.GetAllNetworkAlerts Method ()
Returns a collection of the Alert objects that represents the active alerts on the network.
Namespace: Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework
Assembly: AlertFramework (in AlertFramework.dll)
Syntax
public ReadOnlyAlertCollection GetAllNetworkAlerts()
public:
ReadOnlyAlertCollection^ GetAllNetworkAlerts()
Public Function GetAllNetworkAlerts As ReadOnlyAlertCollection
Return Value
Type: Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework.ReadOnlyAlertCollection
Returns ReadOnlyAlertCollection.
Examples
The following code example shows how to get all network alerts:
NetworkAlertManager networkAlertManager =
new NetworkAlertManager();
ReadOnlyAlertCollection alerts =
networkAlertManager.GetAllNetworkAlerts();
Note
The FeatureName and the HealthDefinitionName are defined in the Definition.xml file for the add-in.
See Also
NetworkAlertManager Class
Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework Namespace
Return to top