Partager via


NetworkAlertManager.RaiseNetworkAlert Method (AlertInfo)

 

Raises an alert with the specified information.

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

Syntax

public Alert RaiseNetworkAlert(
    AlertInfo alertInfo
)
public:
Alert^ RaiseNetworkAlert(
    AlertInfo^ alertInfo
)
Public Function RaiseNetworkAlert (
    alertInfo As AlertInfo
) As Alert

Parameters

Return Value

Type: Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework.Alert

An instance of Alert.

Remarks

You must define the severity of the alert by using the Severity property of the AlertInfo object. The value can be Critical, Warning, or Informational. If the severity is not defined, it is automatically set to OK, which is not recognized by the Dashboard when listing alert occurrences.

See Also

NetworkAlertManager Class
Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework Namespace

Return to top