IVsTaskSchedulerService.CreateTaskEx Method
Creates a task with the specified options 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 CreateTaskEx ( _
context As UInteger, _
options As UInteger, _
pTaskBody As IVsTaskBody, _
pAsyncState As Object _
) As IVsTask
IVsTask CreateTaskEx(
uint context,
uint options,
IVsTaskBody pTaskBody,
Object pAsyncState
)
IVsTask^ CreateTaskEx(
[InAttribute] unsigned int context,
[InAttribute] unsigned int options,
[InAttribute] IVsTaskBody^ pTaskBody,
[InAttribute] Object^ pAsyncState
)
abstract CreateTaskEx :
context:uint32 *
options:uint32 *
pTaskBody:IVsTaskBody *
pAsyncState:Object -> IVsTask
function CreateTaskEx(
context : uint,
options : uint,
pTaskBody : IVsTaskBody,
pAsyncState : Object
) : IVsTask
Parameters
context
Type: System.UInt32[in] Where to run this task. Values are from __VSTASKRUNCONTEXT.
options
Type: System.UInt32[in] The creation options set for the task. Values are from __VSTASKCREATIONOPTIONS.
pTaskBody
Type: Microsoft.VisualStudio.Shell.Interop.IVsTaskBody[in] Action to be executed.
pAsyncState
Type: System.Object[in] The asynchronous state of the task.
Return Value
Type: Microsoft.VisualStudio.Shell.Interop.IVsTask
The new task instance.
.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.