Compartilhar via


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

Begins the execution of a task.

Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)

Usage

'Usage
Dim instance As ITaskRuntimeManagement
Dim instance As EnterpriseManagementObject
Dim task As ManagementPackTask
Dim configuration As TaskConfiguration
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginExecuteTask(instance, task, configuration, callback, state)

Syntax

'Declaration
Function BeginExecuteTask ( _
    instance As EnterpriseManagementObject, _
    task As ManagementPackTask, _
    configuration As TaskConfiguration, _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
IAsyncResult BeginExecuteTask (
    EnterpriseManagementObject instance,
    ManagementPackTask task,
    TaskConfiguration configuration,
    AsyncCallback callback,
    Object state
)
IAsyncResult^ BeginExecuteTask (
    EnterpriseManagementObject^ instance, 
    ManagementPackTask^ task, 
    TaskConfiguration^ configuration, 
    AsyncCallback^ callback, 
    Object^ state
)
IAsyncResult BeginExecuteTask (
    EnterpriseManagementObject instance, 
    ManagementPackTask task, 
    TaskConfiguration configuration, 
    AsyncCallback callback, 
    Object state
)
function BeginExecuteTask (
    instance : EnterpriseManagementObject, 
    task : ManagementPackTask, 
    configuration : TaskConfiguration, 
    callback : AsyncCallback, 
    state : Object
) : IAsyncResult

Parameters

  • instance
    The target instance.
  • task
    The task to submit.
  • configuration
    The configuration of the task.
  • callback
    The callback to get notified on when the task completes.
  • state
    The optional state to pass back to the callback.

Return Value

Returns IAsyncResult.

The result of the task execution.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

Windows Server 2008,Windows Server 2003

See Also

Reference

ITaskRuntimeManagement Interface
ITaskRuntimeManagement Members
Microsoft.EnterpriseManagement Namespace