IVsTaskSchedulerService.CreateTask Method
Creates a task that is run on the given context.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assemblies: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.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
context
Type: System.UInt32[in] Where to run this task. Values are from __VSTASKRUNCONTEXT.
pTaskBody
Type: Microsoft.VisualStudio.Shell.Interop.IVsTaskBody[in] Action to be executed.
Return Value
Type: Microsoft.VisualStudio.Shell.Interop.IVsTask
The task to be run.
.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.