Partager via


IEnumerableAlertExtensions.CountActiveWarning Method (IEnumerable<Alert>)

 

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

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

Syntax

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

Parameters

Return Value

Type: System.Int32

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

Remarks

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

See Also

IEnumerableAlertExtensions Class
Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework Namespace

Return to top