VsTaskLibraryHelper::CreateTask Method (IVsTaskSchedulerService^, VsTaskRunContext, VsTaskCreationOptions, IVsTaskBody^, Object^)
Visual Studio 2015
Creates a task with the specified options that is run on the given context.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
public: [ExtensionAttribute] static IVsTask^ CreateTask( IVsTaskSchedulerService^ service, VsTaskRunContext context, VsTaskCreationOptions options, IVsTaskBody^ taskBody, Object^ asyncState )
Parameters
- service
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsTaskSchedulerService^
[in] The task scheduler service to use to create the task.
- context
-
Type:
Microsoft.VisualStudio.Shell::VsTaskRunContext
[in] Where to run this task.
- options
-
Type:
Microsoft.VisualStudio.Shell::VsTaskCreationOptions
[in] The creation options set for the task.
- taskBody
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsTaskBody^
[in] The action to be executed.
- asyncState
-
Type:
System::Object^
[in] The asynchronous state for the task.
Return Value
Type: Microsoft.VisualStudio.Shell.Interop::IVsTask^The task scheduler service that's creating the task to run.
Show: