ITaskRuntimeManagement.BeginExecuteTask 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.
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::Runtime::TaskConfiguration ^ configuration, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginExecuteTask (Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject instance, Microsoft.EnterpriseManagement.Configuration.ManagementPackTask task, Microsoft.EnterpriseManagement.Runtime.TaskConfiguration configuration, AsyncCallback callback, object state);
abstract member BeginExecuteTask : Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject * Microsoft.EnterpriseManagement.Configuration.ManagementPackTask * Microsoft.EnterpriseManagement.Runtime.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
An IAsyncResult object.
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::Runtime::TaskConfiguration ^ configuration, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginExecuteTask (System.Collections.Generic.ICollection<Guid> targetIds, Guid taskId, Microsoft.EnterpriseManagement.Runtime.TaskConfiguration configuration, AsyncCallback callback, object state);
abstract member BeginExecuteTask : System.Collections.Generic.ICollection<Guid> * Guid * Microsoft.EnterpriseManagement.Runtime.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
An IAsyncResult object.
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::Runtime::TaskConfiguration ^ configuration, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginExecuteTask<T> (System.Collections.Generic.IEnumerable<T> targets, Microsoft.EnterpriseManagement.Configuration.ManagementPackTask task, Microsoft.EnterpriseManagement.Runtime.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.Runtime.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
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.
- callback
- AsyncCallback
The callback to get notified on when the task completes.
- state
- Object
The optional state to pass back to the callback.
Returns
An IAsyncResult object.