Share via


PartialMonitoringObject.ExecuteMonitoringTask Method

Definition

Caution

Use ManagementGroup.TaskRuntime.ExecuteTask methods that take this object

Executes a task.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Runtime::MonitoringTaskResult ^> ^ ExecuteMonitoringTask(Microsoft::EnterpriseManagement::Runtime::MonitoringTask ^ task, Microsoft::EnterpriseManagement::Runtime::TaskConfiguration ^ configuration);
[System.Obsolete("Use ManagementGroup.TaskRuntime.ExecuteTask methods that take this object")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Runtime.MonitoringTaskResult> ExecuteMonitoringTask (Microsoft.EnterpriseManagement.Runtime.MonitoringTask task, Microsoft.EnterpriseManagement.Runtime.TaskConfiguration configuration);
member this.ExecuteMonitoringTask : Microsoft.EnterpriseManagement.Runtime.MonitoringTask * Microsoft.EnterpriseManagement.Runtime.TaskConfiguration -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Runtime.MonitoringTaskResult>
Public Function ExecuteMonitoringTask (task As MonitoringTask, configuration As TaskConfiguration) As ReadOnlyCollection(Of MonitoringTaskResult)

Parameters

task
MonitoringTask

The task to submit.

configuration
TaskConfiguration

The configuration of the task.

Returns

The task results.

Attributes

Applies to