ManagementGroup::BeginExecuteMonitoringTask<T> Method (ICollection<T>^, MonitoringTask^, TaskConfiguration^, AsyncCallback^, Object^)

 

Applies To: Operations Manager for System Center 2012

Note: This API is now obsolete.

Asynchronously begins executing a task.

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

public:
generic<typename T>
where T : PartialMonitoringObject
[ObsoleteAttribute("Please use TaskRuntime.BeginExecuteMonitoringTask<T>()")]
IAsyncResult^ BeginExecuteMonitoringTask(
	ICollection<T>^ targets,
	MonitoringTask^ task,
	TaskConfiguration^ configuration,
	AsyncCallback^ callback,
	Object^ state
)

Parameters

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

The monitoring objects that the task targets.

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

The task to begin executing.

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

The configuration of the task.

callback
Type: System::AsyncCallback^

The callback method that gets called when the task is complete.

state
Type: System::Object^

The optional state to pass back to the callback method.

Return Value

Type: System::IAsyncResult^

Returns anIAsyncResult object.

Type Parameters

T

Must be of typePartialMonitoringObject

Return to top
Show: