ITaskRuntimeManagement.BeginExecuteTask Method

Definition

Begins the execution of a task.

Overloads

BeginExecuteTask(EnterpriseManagementObject, ManagementPackTask, TaskConfiguration, AsyncCallback, Object)

Begins the execution of a task.

BeginExecuteTask(ICollection<Guid>, Guid, TaskConfiguration, AsyncCallback, Object)

Begins the execution of a task.

BeginExecuteTask<T>(IEnumerable<T>, ManagementPackTask, TaskConfiguration, AsyncCallback, Object)

Begins the execution of a task.

BeginExecuteTask(EnterpriseManagementObject, ManagementPackTask, TaskConfiguration, AsyncCallback, Object)

Begins the execution of a task.

public:
 IAsyncResult ^ BeginExecuteTask(Microsoft::EnterpriseManagement::Common::EnterpriseManagementObject ^ instance, Microsoft::EnterpriseManagement::Configuration::ManagementPackTask ^ task, Microsoft::EnterpriseManagement::Configuration::TaskConfiguration ^ configuration, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginExecuteTask (Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject instance, Microsoft.EnterpriseManagement.Configuration.ManagementPackTask task, Microsoft.EnterpriseManagement.Configuration.TaskConfiguration configuration, AsyncCallback callback, object state);
abstract member BeginExecuteTask : Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject * Microsoft.EnterpriseManagement.Configuration.ManagementPackTask * Microsoft.EnterpriseManagement.Configuration.TaskConfiguration * AsyncCallback * obj -> IAsyncResult
Public Function BeginExecuteTask (instance As EnterpriseManagementObject, task As ManagementPackTask, configuration As TaskConfiguration, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

instance
EnterpriseManagementObject

The target instance.

task
ManagementPackTask

The task to submit.

configuration
TaskConfiguration

The configuration of the task.

callback
AsyncCallback

The callback to get notified on when the task completes.

state
Object

The optional state to pass back to the callback.

Returns

Returns IAsyncResult.

The result of the task execution.

Applies to

BeginExecuteTask(ICollection<Guid>, Guid, TaskConfiguration, AsyncCallback, Object)

Begins the execution of a task.

public:
 IAsyncResult ^ BeginExecuteTask(System::Collections::Generic::ICollection<Guid> ^ targetIds, Guid taskId, Microsoft::EnterpriseManagement::Configuration::TaskConfiguration ^ configuration, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginExecuteTask (System.Collections.Generic.ICollection<Guid> targetIds, Guid taskId, Microsoft.EnterpriseManagement.Configuration.TaskConfiguration configuration, AsyncCallback callback, object state);
abstract member BeginExecuteTask : System.Collections.Generic.ICollection<Guid> * Guid * Microsoft.EnterpriseManagement.Configuration.TaskConfiguration * AsyncCallback * obj -> IAsyncResult
Public Function BeginExecuteTask (targetIds As ICollection(Of Guid), taskId As Guid, configuration As TaskConfiguration, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

targetIds
ICollection<Guid>

The entities to target.

taskId
Guid

The task to submit.

configuration
TaskConfiguration

The configuration of the task.

callback
AsyncCallback

The callback to get notified on when the task completes.

state
Object

The optional state to pass back to the callback.

Returns

Returns IAsyncResult.

The result of the task execution.

Applies to

BeginExecuteTask<T>(IEnumerable<T>, ManagementPackTask, TaskConfiguration, AsyncCallback, Object)

Begins the execution of a task.

public:
generic <typename T>
 where T : Microsoft::EnterpriseManagement::Common::EnterpriseManagementObject IAsyncResult ^ BeginExecuteTask(System::Collections::Generic::IEnumerable<T> ^ targets, Microsoft::EnterpriseManagement::Configuration::ManagementPackTask ^ task, Microsoft::EnterpriseManagement::Configuration::TaskConfiguration ^ configuration, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginExecuteTask<T> (System.Collections.Generic.IEnumerable<T> targets, Microsoft.EnterpriseManagement.Configuration.ManagementPackTask task, Microsoft.EnterpriseManagement.Configuration.TaskConfiguration configuration, AsyncCallback callback, object state) where T : Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject;
abstract member BeginExecuteTask : seq<'T (requires 'T :> Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject)> * Microsoft.EnterpriseManagement.Configuration.ManagementPackTask * Microsoft.EnterpriseManagement.Configuration.TaskConfiguration * AsyncCallback * obj -> IAsyncResult (requires 'T :> Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject)
Public Function BeginExecuteTask(Of T As EnterpriseManagementObject) (targets As IEnumerable(Of T), task As ManagementPackTask, configuration As TaskConfiguration, callback As AsyncCallback, state As Object) As IAsyncResult

Type Parameters

T

Parameters

targets
IEnumerable<T>

The entities to target.

task
ManagementPackTask

The task to submit.

configuration
TaskConfiguration

The configuration of the task.

callback
AsyncCallback

The callback to get notified on when the task completes.

state
Object

The optional state to pass back to the callback.

Returns

Returns IAsyncResult.

The result of the task execution.

Applies to