Compartilhar via


IEnumerableAlertInfoExtensions.CountActiveWarning Method (IEnumerable<AlertInfo>)

 

Returns the count of active warning alerts in the specified IEnumerable implementation of AlertInfo objects.

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

Syntax

public static int CountActiveWarning(
    this IEnumerable<AlertInfo> alertEnumerable
)
public:
[ExtensionAttribute]
static int CountActiveWarning(
    IEnumerable<AlertInfo^>^ alertEnumerable
)
<ExtensionAttribute>
Public Shared Function CountActiveWarning (
    alertEnumerable As IEnumerable(Of AlertInfo)
) As Integer

Parameters

Return Value

Type: System.Int32

The number of warning alerts in the specified collection of AlertInfo objects.

Remarks

This count does not include suppressed and cleared alerts that are not considered active.

See Also

IEnumerableAlertInfoExtensions Class
Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework Namespace

Return to top