VsTaskLibraryHelper.CreateAndStartTaskEx Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a Visual Studio task that will be executed with the specified context.
public:
static Microsoft::VisualStudio::Shell::Interop::IVsTask ^ CreateAndStartTaskEx(Microsoft::VisualStudio::Shell::Interop::IVsTaskSchedulerService ^ scheduler, Microsoft::VisualStudio::Shell::VsTaskRunContext context, Microsoft::VisualStudio::Shell::VsTaskCreationOptions options, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ pTaskBody, System::Object ^ pAsyncState);
public:
static Microsoft::VisualStudio::Shell::Interop::IVsTask ^ CreateAndStartTaskEx(Microsoft::VisualStudio::Shell::Interop::IVsTaskSchedulerService ^ scheduler, Microsoft::VisualStudio::Shell::VsTaskRunContext context, Microsoft::VisualStudio::Shell::VsTaskCreationOptions options, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ pTaskBody, Platform::Object ^ pAsyncState);
static Microsoft::VisualStudio::Shell::Interop::IVsTask CreateAndStartTaskEx(Microsoft::VisualStudio::Shell::Interop::IVsTaskSchedulerService const & scheduler, Microsoft::VisualStudio::Shell::VsTaskRunContext context, Microsoft::VisualStudio::Shell::VsTaskCreationOptions options, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody const & pTaskBody, winrt::Windows::Foundation::IInspectable const & pAsyncState);
public static Microsoft.VisualStudio.Shell.Interop.IVsTask CreateAndStartTaskEx (Microsoft.VisualStudio.Shell.Interop.IVsTaskSchedulerService scheduler, Microsoft.VisualStudio.Shell.VsTaskRunContext context, Microsoft.VisualStudio.Shell.VsTaskCreationOptions options, Microsoft.VisualStudio.Shell.Interop.IVsTaskBody pTaskBody, object pAsyncState);
static member CreateAndStartTaskEx : Microsoft.VisualStudio.Shell.Interop.IVsTaskSchedulerService * Microsoft.VisualStudio.Shell.VsTaskRunContext * Microsoft.VisualStudio.Shell.VsTaskCreationOptions * Microsoft.VisualStudio.Shell.Interop.IVsTaskBody * obj -> Microsoft.VisualStudio.Shell.Interop.IVsTask
Public Function CreateAndStartTaskEx (scheduler As IVsTaskSchedulerService, context As VsTaskRunContext, options As VsTaskCreationOptions, pTaskBody As IVsTaskBody, pAsyncState As Object) As IVsTask
Parameters
- scheduler
- IVsTaskSchedulerService
The scheduler that will execute the task.
- context
- VsTaskRunContext
Where the task will be executed.
- options
- VsTaskCreationOptions
The options to apply to the created task.
- pTaskBody
- IVsTaskBody
Action to be executed.
- pAsyncState
- Object
The state object to store with the task.
Returns
The task that was created.