Partager via


IVsTaskSchedulerService.ContinueWhenAllCompleted Method

Creates an asynchrous task that is run after all the provided tasks have either finished running or have been cancelled.

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 ContinueWhenAllCompleted ( _
    context As UInteger, _
    dwTasks As UInteger, _
    pDependentTasks As IVsTask(), _
    pTaskBody As IVsTaskBody _
) As IVsTask
IVsTask ContinueWhenAllCompleted(
    uint context,
    uint dwTasks,
    IVsTask[] pDependentTasks,
    IVsTaskBody pTaskBody
)
IVsTask^ ContinueWhenAllCompleted(
    [InAttribute] unsigned int context, 
    [InAttribute] unsigned int dwTasks, 
    [InAttribute] array<IVsTask^>^ pDependentTasks, 
    [InAttribute] IVsTaskBody^ pTaskBody
)
abstract ContinueWhenAllCompleted : 
        context:uint32 * 
        dwTasks:uint32 * 
        pDependentTasks:IVsTask[] * 
        pTaskBody:IVsTaskBody -> IVsTask
function ContinueWhenAllCompleted(
    context : uint, 
    dwTasks : uint, 
    pDependentTasks : IVsTask[], 
    pTaskBody : IVsTaskBody
) : IVsTask

Parameters

  • context
    Type: UInt32

    [in] Where to run this task.

  • dwTasks
    Type: UInt32

    [in] The number of tasks to wait.

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