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.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.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: System.UInt32[in] Where to run this task.
dwTasks
Type: System.UInt32[in] The number of tasks to wait.
pDependentTasks
Type: array<Microsoft.VisualStudio.Shell.Interop.IVsTask[][in] An array of tasks to wait.
pTaskBody
Type: Microsoft.VisualStudio.Shell.Interop.IVsTaskBody[in] Worker method 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.