Compartir a través de


IVsTaskSchedulerService.CreateTask Method

Creates a task that is run on the given context.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assemblies:   Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Function CreateTask ( _
    context As UInteger, _
    pTaskBody As IVsTaskBody _
) As IVsTask
IVsTask CreateTask(
    uint context,
    IVsTaskBody pTaskBody
)
IVsTask^ CreateTask(
    [InAttribute] unsigned int context, 
    [InAttribute] IVsTaskBody^ pTaskBody
)
abstract CreateTask : 
        context:uint32 * 
        pTaskBody:IVsTaskBody -> IVsTask
function CreateTask(
    context : uint, 
    pTaskBody : IVsTaskBody
) : IVsTask

Parameters

Return Value

Type: Microsoft.VisualStudio.Shell.Interop.IVsTask
The task to be run.

.NET Framework Security

See Also

Reference

IVsTaskSchedulerService Interface

Microsoft.VisualStudio.Shell.Interop Namespace