IVsTaskSchedulerService.ContinueWhenAllCompletedEx 方法

定义

使用指定的选项创建任务 () 在完成所有给定任务之后运行。

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

参数

context
UInt32

中要运行此任务的位置。

dwTasks
UInt32

中要等待的任务数。

pDependentTasks
IVsTask[]

中要等待的任务数组。

options
UInt32

中为任务设置的延续选项。

pTaskBody
IVsTaskBody

中任务的辅助方法。

pAsyncState
Object

中任务的异步状态。

返回

IVsTask

在所有其他任务完成后运行的创建任务。

注解

此调用后,任务服务会取得依赖任务的所有权。

适用于