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
featureName
Type: System.StringThe name of the feature
healthDefinitionName
Type: System.StringThe name of the health definition.
description
Type: System.StringThe description of the alert.
additionalInfo
Type: System.Collections.Generic.IEnumerable<String>The list of additional information that is added associated with the alert.
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