PartialMonitoringObject.ExecuteMonitoringTask Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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