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

 

Applies To: Operations Manager for System Center 2012

Note: This API is now obsolete.

Submits a specified task, providing the targeted objects, task configuration settings, and a callback if task results change.

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

public:
generic<typename T>
where T : PartialMonitoringObject
[ObsoleteAttribute("Please use TaskRuntime.SubmitMonitoringTask<T>()")]
Guid SubmitMonitoringTask(
	ICollection<T>^ targets,
	MonitoringTask^ task,
	TaskConfiguration^ configuration,
	MonitoringTaskStatusChangeCallback^ callback
)

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^

Configuration settings for the task.

callback
Type: Microsoft.EnterpriseManagement.Monitoring::MonitoringTaskStatusChangeCallback^

The callback method that is called when any of the task results change for the batch.

Return Value

Type: System::Guid

Returns aGuid object that is used to get the task results manually.

Type Parameters

T

Must be of type PartialMonitoringObject.

Return to top
Show: