IVsTaskSchedulerService.ContinueWhenAllCompletedEx Method

Definition

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

C#
public Microsoft.VisualStudio.Shell.Interop.IVsTask ContinueWhenAllCompletedEx(uint context, uint dwTasks, Microsoft.VisualStudio.Shell.Interop.IVsTask[] pDependentTasks, uint options, Microsoft.VisualStudio.Shell.Interop.IVsTaskBody pTaskBody, object pAsyncState);

Parameters

context
UInt32

[in] Where to run this task.

dwTasks
UInt32

[in] The number of tasks to wait.

pDependentTasks
IVsTask[]

[in] An array of tasks to wait.

options
UInt32

[in] The continuation options set for the task.

pTaskBody
IVsTaskBody

[in] Worker method for the task.

pAsyncState
Object

[in] Asynchronous state for the task.

Returns

The created task that runs after all of the other tasks have completed.

Remarks

This method is safe to access from any thread.

Applies to

Product Versions
Visual Studio SDK 2015, 2017, 2019, 2022