ITaskRuntimeManagement.ExecuteTask Method (IEnumerable, ManagementPackTask, TaskConfiguration)

Updated: April 16, 2012

Executes a task. Namespace: Microsoft.EnterpriseManagement.Runtime
Assembly: Microsoft.EnterpriseManagement.Runtime (in Microsoft.EnterpriseManagement.Runtime.dll)Dim instance As ITaskRuntimeManagement Dim targets As IEnumerable(Of T) Dim task As ManagementPackTask Dim configuration As TaskConfiguration Dim returnValue As IList(Of TaskResult) returnValue = instance.ExecuteTask(targets, task, configuration)Function ExecuteTask(Of T As EnterpriseManagementObject) ( _ targets As IEnumerable(Of T), _ task As ManagementPackTask, _ configuration As TaskConfiguration _ ) As IList(Of TaskResult)IList<TaskResult> ExecuteTask<T> ( IEnumerable<T> targets, ManagementPackTask task, TaskConfiguration configuration ) where T : EnterpriseManagementObjectgeneric<typename T> where T : EnterpriseManagementObject IList<TaskResult^>^ ExecuteTask ( IEnumerable<T>^ targets, ManagementPackTask^ task, TaskConfiguration^ configuration )GenericParametersTThe type of object the setting representsParameterstargetsThe entities to target.taskThe task to submit.configurationThe configuration of the task.Return ValueReturns IList. The task results.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms