Share via


LocalAlertManager.RaiseLocalAlert Method (String, String, String, IEnumerable<String>)

 

Raises an alert for a health definition that is defined on the local computer, using the specified information.

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

Syntax

public Alert RaiseLocalAlert(
    string featureName,
    string healthDefinitionName,
    string description,
    IEnumerable<string> additionalInfo
)
public:
Alert^ RaiseLocalAlert(
    String^ featureName,
    String^ healthDefinitionName,
    String^ description,
    IEnumerable<String^>^ additionalInfo
)
Public Function RaiseLocalAlert (
    featureName As String,
    healthDefinitionName As String,
    description As String,
    additionalInfo As IEnumerable(Of String)
) As Alert

Parameters

  • healthDefinitionName
    Type: System.String

    The name of the health definition.

Return Value

Type: Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework.Alert

An instance of Alert.

Exceptions

Exception Condition
AlertProviderException

Communication or connection errors occurred when calling the Alert Provider.

InvalidOperationException

The method was called from the Windows UI thread

See Also

RaiseLocalAlert Overload
LocalAlertManager Class
Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework Namespace

Return to top