Compartilhar via


IVsTaskSchedulerService.ContinueWhenAllCompletedEx Method

Creates a task (using the specified options) that is run after all the given tasks are completed.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assemblies:   Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Function ContinueWhenAllCompletedEx ( _
    context As UInteger, _
    dwTasks As UInteger, _
    pDependentTasks As IVsTask(), _
    options As UInteger, _
    pTaskBody As IVsTaskBody, _
    pAsyncState As Object _
) As IVsTask
IVsTask ContinueWhenAllCompletedEx(
    uint context,
    uint dwTasks,
    IVsTask[] pDependentTasks,
    uint options,
    IVsTaskBody pTaskBody,
    Object pAsyncState
)
IVsTask^ ContinueWhenAllCompletedEx(
    [InAttribute] unsigned int context, 
    [InAttribute] unsigned int dwTasks, 
    [InAttribute] array<IVsTask^>^ pDependentTasks, 
    [InAttribute] unsigned int options, 
    [InAttribute] IVsTaskBody^ pTaskBody, 
    [InAttribute] Object^ pAsyncState
)
abstract ContinueWhenAllCompletedEx : 
        context:uint32 * 
        dwTasks:uint32 * 
        pDependentTasks:IVsTask[] * 
        options:uint32 * 
        pTaskBody:IVsTaskBody * 
        pAsyncState:Object -> IVsTask
function ContinueWhenAllCompletedEx(
    context : uint, 
    dwTasks : uint, 
    pDependentTasks : IVsTask[], 
    options : uint, 
    pTaskBody : IVsTaskBody, 
    pAsyncState : Object
) : IVsTask

Parameters

  • context
    Type: UInt32

    [in] Where to run this task.

  • dwTasks
    Type: UInt32

    [in] The number of tasks to wait.

  • options
    Type: UInt32

    [in] The continuation options set for the task.

  • pAsyncState
    Type: Object

    [in] Asynchronous state for the task.

Return Value

Type: Microsoft.VisualStudio.Shell.Interop.IVsTask
The created task that runs after all of the other tasks have completed.

Remarks

The task service takes ownership of dependent tasks after this call.

.NET Framework Security

See Also

Reference

IVsTaskSchedulerService Interface

Microsoft.VisualStudio.Shell.Interop Namespace