Partilhar via


IVsTaskSchedulerService.ContinueWhenAllCompletedEx Method

Definition

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

public:
 Microsoft::VisualStudio::Shell::Interop::IVsTask ^ ContinueWhenAllCompletedEx(System::UInt32 context, System::UInt32 dwTasks, cli::array <Microsoft::VisualStudio::Shell::Interop::IVsTask ^> ^ pDependentTasks, System::UInt32 options, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ pTaskBody, System::Object ^ pAsyncState);
public:
 Microsoft::VisualStudio::Shell::Interop::IVsTask ^ ContinueWhenAllCompletedEx(unsigned int context, unsigned int dwTasks, Platform::Array <Microsoft::VisualStudio::Shell::Interop::IVsTask ^> ^ pDependentTasks, unsigned int options, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ pTaskBody, Platform::Object ^ pAsyncState);
Microsoft::VisualStudio::Shell::Interop::IVsTask ContinueWhenAllCompletedEx(unsigned int context, unsigned int dwTasks, std::Array <Microsoft::VisualStudio::Shell::Interop::IVsTask const &> const & pDependentTasks, unsigned int options, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody const & pTaskBody, winrt::Windows::Foundation::IInspectable const & pAsyncState);
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);
abstract member ContinueWhenAllCompletedEx : uint32 * uint32 * Microsoft.VisualStudio.Shell.Interop.IVsTask[] * uint32 * Microsoft.VisualStudio.Shell.Interop.IVsTaskBody * obj -> Microsoft.VisualStudio.Shell.Interop.IVsTask
Public Function ContinueWhenAllCompletedEx (context As UInteger, dwTasks As UInteger, pDependentTasks As IVsTask(), options As UInteger, pTaskBody As IVsTaskBody, pAsyncState As Object) 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.

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