VsTaskLibraryHelper.CreateTask Method

Definition

Overloads

CreateTask(IVsTaskSchedulerService, VsTaskRunContext, IVsTaskBody)

Override for IVsTaskSchedulerService.CreateTask to use proper enum types.

CreateTask(IVsTaskSchedulerService, VsTaskRunContext, VsTaskCreationOptions, IVsTaskBody, Object)

Override for IVsTaskSchedulerService.CreateTaskEx to use proper enum types.

CreateTask(IVsTaskSchedulerService, VsTaskRunContext, IVsTaskBody)

Override for IVsTaskSchedulerService.CreateTask to use proper enum types.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Shell::Interop::IVsTask ^ CreateTask(Microsoft::VisualStudio::Shell::Interop::IVsTaskSchedulerService ^ service, Microsoft::VisualStudio::Shell::VsTaskRunContext context, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ taskBody);
public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Shell::Interop::IVsTask ^ CreateTask(Microsoft::VisualStudio::Shell::Interop::IVsTaskSchedulerService ^ service, Microsoft::VisualStudio::Shell::VsTaskRunContext context, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ taskBody);
public static Microsoft.VisualStudio.Shell.Interop.IVsTask CreateTask (this Microsoft.VisualStudio.Shell.Interop.IVsTaskSchedulerService service, Microsoft.VisualStudio.Shell.VsTaskRunContext context, Microsoft.VisualStudio.Shell.Interop.IVsTaskBody taskBody);
static member CreateTask : Microsoft.VisualStudio.Shell.Interop.IVsTaskSchedulerService * Microsoft.VisualStudio.Shell.VsTaskRunContext * Microsoft.VisualStudio.Shell.Interop.IVsTaskBody -> Microsoft.VisualStudio.Shell.Interop.IVsTask
<Extension()>
Public Function CreateTask (service As IVsTaskSchedulerService, context As VsTaskRunContext, taskBody As IVsTaskBody) As IVsTask

Parameters

service
IVsTaskSchedulerService

[in] The task scheduler service to use to create the task.

context
VsTaskRunContext

[in] Where to run this task.

taskBody
IVsTaskBody

[in] The action to be executed.

Returns

The task scheduler service that's creating the task to run.

Remarks

See comments for IVsTaskSchedulerService for method documentation.

Applies to

CreateTask(IVsTaskSchedulerService, VsTaskRunContext, VsTaskCreationOptions, IVsTaskBody, Object)

Override for IVsTaskSchedulerService.CreateTaskEx to use proper enum types.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Shell::Interop::IVsTask ^ CreateTask(Microsoft::VisualStudio::Shell::Interop::IVsTaskSchedulerService ^ service, Microsoft::VisualStudio::Shell::VsTaskRunContext context, Microsoft::VisualStudio::Shell::VsTaskCreationOptions options, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ taskBody, System::Object ^ asyncState);
public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Shell::Interop::IVsTask ^ CreateTask(Microsoft::VisualStudio::Shell::Interop::IVsTaskSchedulerService ^ service, Microsoft::VisualStudio::Shell::VsTaskRunContext context, Microsoft::VisualStudio::Shell::VsTaskCreationOptions options, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ taskBody, Platform::Object ^ asyncState);
public static Microsoft.VisualStudio.Shell.Interop.IVsTask CreateTask (this Microsoft.VisualStudio.Shell.Interop.IVsTaskSchedulerService service, Microsoft.VisualStudio.Shell.VsTaskRunContext context, Microsoft.VisualStudio.Shell.VsTaskCreationOptions options, Microsoft.VisualStudio.Shell.Interop.IVsTaskBody taskBody, object asyncState);
static member CreateTask : Microsoft.VisualStudio.Shell.Interop.IVsTaskSchedulerService * Microsoft.VisualStudio.Shell.VsTaskRunContext * Microsoft.VisualStudio.Shell.VsTaskCreationOptions * Microsoft.VisualStudio.Shell.Interop.IVsTaskBody * obj -> Microsoft.VisualStudio.Shell.Interop.IVsTask
<Extension()>
Public Function CreateTask (service As IVsTaskSchedulerService, context As VsTaskRunContext, options As VsTaskCreationOptions, taskBody As IVsTaskBody, asyncState As Object) As IVsTask

Parameters

service
IVsTaskSchedulerService

[in] The task scheduler service to use to create the task.

context
VsTaskRunContext

[in] Where to run this task.

options
VsTaskCreationOptions

[in] The creation options set for the task.

taskBody
IVsTaskBody

[in] The action to be executed.

asyncState
Object

[in] The asynchronous state for the task.

Returns

The task scheduler service that's creating the task to run.

Remarks

See comments for IVsTaskSchedulerService for method documentation.

Applies to