IVsTaskSchedulerService.CreateTask(UInt32, IVsTaskBody) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建在给定上下文上运行的任务。
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
中要执行的操作。
返回
要运行的任务。