VsTaskLibraryHelper.CreateAndStartTaskEx(IVsTaskSchedulerService, VsTaskRunContext, VsTaskCreationOptions, IVsTaskBody, Object) Метод

Определение

Создает задачу Visual Studio, которая будет выполнена с указанным контекстом.

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

Параметры

scheduler
IVsTaskSchedulerService

Планировщик, который будет выполнять задачу.

context
VsTaskRunContext

Где будет выполняться задача.

options
VsTaskCreationOptions

Параметры, применяемые к созданной задаче.

pTaskBody
IVsTaskBody

Выполняемое действие.

pAsyncState
Object

Объект состояния для хранения в задаче.

Возвращаемое значение

IVsTask

Созданная задача.

Применяется к