VsTaskLibraryHelper::ContinueWhenAllCompleted Method (IVsTaskSchedulerService^, VsTaskRunContext, array<IVsTask^>^, VsTaskContinuationOptions, IVsTaskBody^, Object^)
Visual Studio 2015
Uses the specified options to create a task that's run after the given tasks are completed. Overrides ContinueWhenAllCompletedEx.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
public: [ExtensionAttribute] static IVsTask^ ContinueWhenAllCompleted( IVsTaskSchedulerService^ service, VsTaskRunContext context, array<IVsTask^>^ dependentTasks, VsTaskContinuationOptions options, IVsTaskBody^ taskBody, Object^ asyncState )
Parameters
- service
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsTaskSchedulerService^
[in] The task scheduler service to use to create the task.
- context
-
Type:
Microsoft.VisualStudio.Shell::VsTaskRunContext
[in] Where to run this task.
- dependentTasks
-
Type:
array<Microsoft.VisualStudio.Shell.Interop::IVsTask^>^
[in] An array of tasks to wait.
- options
-
Type:
Microsoft.VisualStudio.Shell::VsTaskContinuationOptions
[in] The continuation options set for the task.
- taskBody
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsTaskBody^
[in] Worker method for the task.
- asyncState
-
Type:
System::Object^
[in] The asynchronous state for the task.
Return Value
Type: Microsoft.VisualStudio.Shell.Interop::IVsTask^The task scheduler service that's creating the task.
The task service takes ownership of dependent tasks after this call.
Show: