ManagementGroup::GetMonitoringTasks<T> Method (ManagementPackTaskCriteria^, ICollection<T>^)

 

Applies To: Operations Manager for System Center 2012

Note: This API is now obsolete.

Retrieves a collection of the monitoring tasks in the management group that match the specified filter and that target the specified monitoring objects.

Namespace:   Microsoft.EnterpriseManagement
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.

Type Parameters

T

Must be of typePartialMonitoringObject.

Return to top
Show: