VsTaskLibraryHelper::CreateAndStartTaskEx Method (IVsTaskSchedulerService^, VsTaskRunContext, VsTaskCreationOptions, IVsTaskBody^, Object^)
Visual Studio 2015
Creates a Visual Studio task that's executed with the specified context.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
public: static IVsTask^ CreateAndStartTaskEx( IVsTaskSchedulerService^ scheduler, VsTaskRunContext context, VsTaskCreationOptions options, IVsTaskBody^ pTaskBody, Object^ pAsyncState )
Parameters
- scheduler
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsTaskSchedulerService^
[in] The task scheduler service.
- context
-
Type:
Microsoft.VisualStudio.Shell::VsTaskRunContext
[in] Where the task will be executed.
- options
-
Type:
Microsoft.VisualStudio.Shell::VsTaskCreationOptions
[in] Flags that control optional behavior for the creation and execution of tasks.
- pTaskBody
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsTaskBody^
[in] The action to be executed.
- pAsyncState
-
Type:
System::Object^
The asynchronous state for the task.
Show: