IVsTaskSchedulerService.ContinueWhenAllCompleted 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个在所有提供的任务已完成运行或已取消时运行的 asynchrous 任务。
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
参数
- context
- UInt32
中要运行此任务的位置。
- dwTasks
- UInt32
中要等待的任务数。
- pDependentTasks
- IVsTask[]
中要等待的任务数组。
- pTaskBody
- IVsTaskBody
中任务的辅助方法。
返回
在所有其他任务完成后运行的创建任务。
注解
此调用后,任务服务会取得依赖任务的所有权。