ITaskRuntimeManagement.ExecuteTask 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.
Overloads
ExecuteTask(EnterpriseManagementObject, ManagementPackTask, TaskConfiguration) |
Executes a task. |
ExecuteTask<T>(IEnumerable<T>, ManagementPackTask, TaskConfiguration) |
Executes a task. |
ExecuteTask(EnterpriseManagementObject, ManagementPackTask, TaskConfiguration)
Executes a task.
public:
System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Monitoring::TaskResult ^> ^ ExecuteTask(Microsoft::EnterpriseManagement::Common::EnterpriseManagementObject ^ instance, Microsoft::EnterpriseManagement::Configuration::ManagementPackTask ^ task, Microsoft::EnterpriseManagement::Configuration::TaskConfiguration ^ configuration);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Monitoring.TaskResult> ExecuteTask (Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject instance, Microsoft.EnterpriseManagement.Configuration.ManagementPackTask task, Microsoft.EnterpriseManagement.Configuration.TaskConfiguration configuration);
abstract member ExecuteTask : Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject * Microsoft.EnterpriseManagement.Configuration.ManagementPackTask * Microsoft.EnterpriseManagement.Configuration.TaskConfiguration -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Monitoring.TaskResult>
Public Function ExecuteTask (instance As EnterpriseManagementObject, task As ManagementPackTask, configuration As TaskConfiguration) As IList(Of TaskResult)
Parameters
- instance
- EnterpriseManagementObject
The target instance.
- task
- ManagementPackTask
The task to submit.
- configuration
- TaskConfiguration
The configuration of the task.
Returns
Returns IList<T>.
The task results.
Applies to
ExecuteTask<T>(IEnumerable<T>, ManagementPackTask, TaskConfiguration)
Executes a task.
public:
generic <typename T>
where T : Microsoft::EnterpriseManagement::Common::EnterpriseManagementObject System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Monitoring::TaskResult ^> ^ ExecuteTask(System::Collections::Generic::IEnumerable<T> ^ targets, Microsoft::EnterpriseManagement::Configuration::ManagementPackTask ^ task, Microsoft::EnterpriseManagement::Configuration::TaskConfiguration ^ configuration);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Monitoring.TaskResult> ExecuteTask<T> (System.Collections.Generic.IEnumerable<T> targets, Microsoft.EnterpriseManagement.Configuration.ManagementPackTask task, Microsoft.EnterpriseManagement.Configuration.TaskConfiguration configuration) where T : Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject;
abstract member ExecuteTask : seq<'T (requires 'T :> Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject)> * Microsoft.EnterpriseManagement.Configuration.ManagementPackTask * Microsoft.EnterpriseManagement.Configuration.TaskConfiguration -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Monitoring.TaskResult> (requires 'T :> Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject)
Public Function ExecuteTask(Of T As EnterpriseManagementObject) (targets As IEnumerable(Of T), task As ManagementPackTask, configuration As TaskConfiguration) As IList(Of TaskResult)
Type Parameters
- T
Parameters
- targets
- IEnumerable<T>
The entities to target.
- task
- ManagementPackTask
The task to submit.
- configuration
- TaskConfiguration
The configuration of the task.
Returns
Returns IList<T>.
The task results.