PartialMonitoringObject::ExecuteMonitoringTask Method (MonitoringTask^, TaskConfiguration^)

 

Applies To: Operations Manager for System Center 2012

Note: This API is now obsolete.

Synchronously executes a task.

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

public:
[ObsoleteAttribute("Use ManagementGroup.TaskRuntime.ExecuteTask methods that take this object")]
ReadOnlyCollection<MonitoringTaskResult^>^ ExecuteMonitoringTask(
	MonitoringTask^ task,
	TaskConfiguration^ configuration
)

Parameters

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

The task to execute.

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

The configuration settings for the task.

Return Value

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

Returns a read-only collection ofReadOnlyCollection<T> objects that contain the result of the task execution.

Return to top
Show: