ITaskRuntimeManagement.BeginExecuteTask Method (IEnumerable, ManagementPackTask, TaskConfiguration, AsyncCallback, Object)

Updated: April 16, 2012

Begins the execution of 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 callback As AsyncCallback Dim state As Object Dim returnValue As IAsyncResult returnValue = instance.BeginExecuteTask(targets, task, configuration, callback, state)Function BeginExecuteTask(Of T As EnterpriseManagementObject) ( _ targets As IEnumerable(Of T), _ task As ManagementPackTask, _ configuration As TaskConfiguration, _ callback As AsyncCallback, _ state As Object _ ) As IAsyncResultIAsyncResult BeginExecuteTask<T> ( IEnumerable<T> targets, ManagementPackTask task, TaskConfiguration configuration, AsyncCallback callback, Object state ) where T : EnterpriseManagementObjectgeneric<typename T> where T : EnterpriseManagementObject IAsyncResult^ BeginExecuteTask ( IEnumerable<T>^ targets, ManagementPackTask^ task, TaskConfiguration^ configuration, AsyncCallback^ callback, Object^ state )GenericParametersTThe type of object the setting representsParameterstargetsThe entities to target.taskThe task to submit.configurationThe configuration of the task.callbackThe callback to get notified on when the task completes.stateThe optional state to pass back to the callback.Return ValueReturns IAsyncResult. The result of the task execution.
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