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::Runtime::TaskResult ^> ^ ExecuteTask(Microsoft::EnterpriseManagement::Common::EnterpriseManagementObject ^ instance, Microsoft::EnterpriseManagement::Configuration::ManagementPackTask ^ task, Microsoft::EnterpriseManagement::Runtime::TaskConfiguration ^ configuration);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Runtime.TaskResult> ExecuteTask (Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject instance, Microsoft.EnterpriseManagement.Configuration.ManagementPackTask task, Microsoft.EnterpriseManagement.Runtime.TaskConfiguration configuration);
abstract member ExecuteTask : Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject * Microsoft.EnterpriseManagement.Configuration.ManagementPackTask * Microsoft.EnterpriseManagement.Runtime.TaskConfiguration -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Runtime.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
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::Runtime::TaskResult ^> ^ ExecuteTask(System::Collections::Generic::IEnumerable<T> ^ targets, Microsoft::EnterpriseManagement::Configuration::ManagementPackTask ^ task, Microsoft::EnterpriseManagement::Runtime::TaskConfiguration ^ configuration);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Runtime.TaskResult> ExecuteTask<T> (System.Collections.Generic.IEnumerable<T> targets, Microsoft.EnterpriseManagement.Configuration.ManagementPackTask task, Microsoft.EnterpriseManagement.Runtime.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.Runtime.TaskConfiguration -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Runtime.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
The type of object the setting represents
Parameters
- targets
- IEnumerable<T>
The entities to target.
- task
- ManagementPackTask
The task to submit.
- configuration
- TaskConfiguration
The configuration of the task.
Returns
The task results.
Exceptions
There was an error processing results on the server.