ManagementGroup::GetMonitoringTasks<T> Method (ManagementPackTaskCriteria^, ICollection<T>^)
Applies To: Operations Manager for System Center 2012
Note: This API is now obsolete.Namespace:
Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Return to top
Retrieves a collection of the monitoring tasks in the management group that match the specified filter and that target the specified monitoring objects.
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
public: generic<typename T> where T : PartialMonitoringObject [ObsoleteAttribute("Please use TaskConfiguration.GetTasks<T>()")] ReadOnlyCollection<MonitoringTask^>^ GetMonitoringTasks( ManagementPackTaskCriteria^ criteria, ICollection<T>^ monitoringObjects )
Parameters
- criteria
-
Type:
Microsoft.EnterpriseManagement.Configuration::ManagementPackTaskCriteria^
A value that specifies the kind of monitoring task objects.
- monitoringObjects
-
Type:
System.Collections.Generic::ICollection<T>^
The monitoring objects targeted by these tasks.
Return Value
Type: System.Collections.ObjectModel::ReadOnlyCollection<MonitoringTask^>^Returns aReadOnlyCollection<T>object ofMonitoringTask objects.
Type Parameters
- T
Must be of typePartialMonitoringObject.
Show: