VsTaskLibraryHelper.CreateAndStartTaskEx(IVsTaskSchedulerService, VsTaskRunContext, VsTaskCreationOptions, IVsTaskBody, Object) Methode

Definition

Erstellt eine Visual Studio-Aufgabe, die mit dem angegebenen Kontext ausgeführt wird.

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

Parameter

scheduler
IVsTaskSchedulerService

Der Planer, der die Aufgabe ausführt.

context
VsTaskRunContext

Der Task, in dem die Aufgabe ausgeführt wird.

options
VsTaskCreationOptions

Die Optionen, die auf die erstellte Aufgabe angewendet werden sollen.

pTaskBody
IVsTaskBody

Auszuführende Aktion.

pAsyncState
Object

Das Zustands Objekt, das mit der Aufgabe gespeichert werden soll.

Gibt zurück

IVsTask

Die Aufgabe, die erstellt wurde.

Gilt für