IVsTaskSchedulerService.CreateTask(UInt32, IVsTaskBody) 方法

定义

创建在给定上下文上运行的任务。

public:
 Microsoft::VisualStudio::Shell::Interop::IVsTask ^ CreateTask(System::UInt32 context, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ pTaskBody);
public:
 Microsoft::VisualStudio::Shell::Interop::IVsTask ^ CreateTask(unsigned int context, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ pTaskBody);
Microsoft::VisualStudio::Shell::Interop::IVsTask CreateTask(unsigned int context, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody const & pTaskBody);
public Microsoft.VisualStudio.Shell.Interop.IVsTask CreateTask (uint context, Microsoft.VisualStudio.Shell.Interop.IVsTaskBody pTaskBody);
abstract member CreateTask : uint32 * Microsoft.VisualStudio.Shell.Interop.IVsTaskBody -> Microsoft.VisualStudio.Shell.Interop.IVsTask
Public Function CreateTask (context As UInteger, pTaskBody As IVsTaskBody) As IVsTask

参数

context
UInt32

中要运行此任务的位置。 值来自 __VSTASKRUNCONTEXT

pTaskBody
IVsTaskBody

中要执行的操作。

返回

IVsTask

要运行的任务。

适用于