Share via


IEnumerableAlertExtensions.CountActiveCritical Method (IEnumerable<Alert>)

 

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

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

Syntax

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

Parameters

Return Value

Type: System.Int32

The number of critical 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