VsTaskLibraryHelper.CreateAndStartTaskEx Method
Creates a Visual Studio task that's executed with the specified context.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Shared Function CreateAndStartTaskEx ( _
scheduler As IVsTaskSchedulerService, _
context As VsTaskRunContext, _
options As VsTaskCreationOptions, _
pTaskBody As IVsTaskBody, _
pAsyncState As Object _
) As IVsTask
public static IVsTask CreateAndStartTaskEx(
IVsTaskSchedulerService scheduler,
VsTaskRunContext context,
VsTaskCreationOptions options,
IVsTaskBody pTaskBody,
Object pAsyncState
)
public:
static IVsTask^ CreateAndStartTaskEx(
IVsTaskSchedulerService^ scheduler,
VsTaskRunContext context,
VsTaskCreationOptions options,
IVsTaskBody^ pTaskBody,
Object^ pAsyncState
)
static member CreateAndStartTaskEx :
scheduler:IVsTaskSchedulerService *
context:VsTaskRunContext *
options:VsTaskCreationOptions *
pTaskBody:IVsTaskBody *
pAsyncState:Object -> IVsTask
public static function CreateAndStartTaskEx(
scheduler : IVsTaskSchedulerService,
context : VsTaskRunContext,
options : VsTaskCreationOptions,
pTaskBody : IVsTaskBody,
pAsyncState : Object
) : IVsTask
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: ObjectThe asynchronous state for the task.
Return Value
Type: Microsoft.VisualStudio.Shell.Interop.IVsTask
The task that was created.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.