ManagementGroup::ExecuteMonitoringTask<T> Method (ICollection<T>^, MonitoringTask^, TaskConfiguration^)

 

Applies To: Operations Manager for System Center 2012

Note: This API is now obsolete.

Executes a monitoring task.

Namespace:   Microsoft.EnterpriseManagement
Assembly:  Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)

public:
generic<typename T>
where T : PartialMonitoringObject
[ObsoleteAttribute("Please use TaskRuntime.ExecuteMonitoringTask<T>()")]
ReadOnlyCollection<MonitoringTaskResult^>^ ExecuteMonitoringTask(
	ICollection<T>^ targets,
	MonitoringTask^ task,
	TaskConfiguration^ configuration
)

Parameters

targets
Type: System.Collections.Generic::ICollection<T>^

The objects that the task targets.

task
Type: Microsoft.EnterpriseManagement.Runtime::MonitoringTask^

The task to submit.

configuration
Type: Microsoft.EnterpriseManagement.Runtime::TaskConfiguration^

The configuration settings for the task.

Return Value

Type: System.Collections.ObjectModel::ReadOnlyCollection<MonitoringTaskResult^>^

Returns aReadOnlyCollection<T> object that are the results of the task.

Type Parameters

T

Must be of type PartialMonitoringObject.

Return to top
Show: