다음을 통해 공유


IVsTaskSchedulerService.ContinueWhenAllCompleted Method

Definition

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

public:
 Microsoft::VisualStudio::Shell::Interop::IVsTask ^ ContinueWhenAllCompleted(System::UInt32 context, System::UInt32 dwTasks, cli::array <Microsoft::VisualStudio::Shell::Interop::IVsTask ^> ^ pDependentTasks, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ pTaskBody);
public:
 Microsoft::VisualStudio::Shell::Interop::IVsTask ^ ContinueWhenAllCompleted(unsigned int context, unsigned int dwTasks, Platform::Array <Microsoft::VisualStudio::Shell::Interop::IVsTask ^> ^ pDependentTasks, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ pTaskBody);
Microsoft::VisualStudio::Shell::Interop::IVsTask ContinueWhenAllCompleted(unsigned int context, unsigned int dwTasks, std::Array <Microsoft::VisualStudio::Shell::Interop::IVsTask const &> const & pDependentTasks, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody const & pTaskBody);
public Microsoft.VisualStudio.Shell.Interop.IVsTask ContinueWhenAllCompleted (uint context, uint dwTasks, Microsoft.VisualStudio.Shell.Interop.IVsTask[] pDependentTasks, Microsoft.VisualStudio.Shell.Interop.IVsTaskBody pTaskBody);
abstract member ContinueWhenAllCompleted : uint32 * uint32 * Microsoft.VisualStudio.Shell.Interop.IVsTask[] * Microsoft.VisualStudio.Shell.Interop.IVsTaskBody -> Microsoft.VisualStudio.Shell.Interop.IVsTask
Public Function ContinueWhenAllCompleted (context As UInteger, dwTasks As UInteger, pDependentTasks As IVsTask(), pTaskBody As IVsTaskBody) As IVsTask

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.

pTaskBody
IVsTaskBody

[in] Worker method 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