Applies To: Operations Manager for System Center 2012
Note: This API is now obsolete.
Retrieves the number ofMonitoringAlert objects for the specified scope that match the specified filter.
Namespace:   Microsoft.EnterpriseManagement
Assembly:  Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Syntax
[ObsoleteAttribute("Please use OperationalData.GetMonitoringAlertsCount()")]
public int GetMonitoringAlertsCount(
    MonitoringAlertCriteria criteria,
    MonitoringClass monitoringClass
)
public:
[ObsoleteAttribute("Please use OperationalData.GetMonitoringAlertsCount()")]
int GetMonitoringAlertsCount(
    MonitoringAlertCriteria^ criteria,
    MonitoringClass^ monitoringClass
)
[<ObsoleteAttribute("Please use OperationalData.GetMonitoringAlertsCount()")>]
member GetMonitoringAlertsCount : 
        criteria:MonitoringAlertCriteria *
        monitoringClass:MonitoringClass -> int
<ObsoleteAttribute("Please use OperationalData.GetMonitoringAlertsCount()")>
Public Function GetMonitoringAlertsCount (
    criteria As MonitoringAlertCriteria,
    monitoringClass As MonitoringClass
) As Integer
Parameters
- criteria 
 Type: Microsoft.EnterpriseManagement.Monitoring.MonitoringAlertCriteria- A value that specifies the kind of monitoring alerts. 
- monitoringClass 
 Type: Microsoft.EnterpriseManagement.Configuration.MonitoringClass- The monitoring class, with all its derived classes, that defines the range of the returned results. 
Return Value
Type: System.Int32
Returns aInt32 that represents the number of selectedMonitoringAlert objects.
See Also
GetMonitoringAlertsCount Overload
ManagementGroup Class
Microsoft.EnterpriseManagement Namespace
Return to top