VsTaskLibraryHelper.ContinueWhenAllCompleted Method (IVsTaskSchedulerService, VsTaskRunContext, array<IVsTask , VsTaskContinuationOptions, IVsTaskBody, Object)
Uses the specified options to create a task that's run after the given tasks are completed. Overrides ContinueWhenAllCompletedEx.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function ContinueWhenAllCompleted ( _
service As IVsTaskSchedulerService, _
context As VsTaskRunContext, _
dependentTasks As IVsTask(), _
options As VsTaskContinuationOptions, _
taskBody As IVsTaskBody, _
asyncState As Object _
) As IVsTask
public static IVsTask ContinueWhenAllCompleted(
this IVsTaskSchedulerService service,
VsTaskRunContext context,
IVsTask[] dependentTasks,
VsTaskContinuationOptions options,
IVsTaskBody taskBody,
Object asyncState
)
[ExtensionAttribute]
public:
static IVsTask^ ContinueWhenAllCompleted(
IVsTaskSchedulerService^ service,
VsTaskRunContext context,
array<IVsTask^>^ dependentTasks,
VsTaskContinuationOptions options,
IVsTaskBody^ taskBody,
Object^ asyncState
)
static member ContinueWhenAllCompleted :
service:IVsTaskSchedulerService *
context:VsTaskRunContext *
dependentTasks:IVsTask[] *
options:VsTaskContinuationOptions *
taskBody:IVsTaskBody *
asyncState:Object -> IVsTask
public static function ContinueWhenAllCompleted(
service : IVsTaskSchedulerService,
context : VsTaskRunContext,
dependentTasks : IVsTask[],
options : VsTaskContinuationOptions,
taskBody : IVsTaskBody,
asyncState : Object
) : IVsTask
Parameters
service
Type: Microsoft.VisualStudio.Shell.Interop.IVsTaskSchedulerService[in] The task scheduler service to use to create the task.
context
Type: Microsoft.VisualStudio.Shell.VsTaskRunContext[in] Where to run this task.
dependentTasks
Type: array<Microsoft.VisualStudio.Shell.Interop.IVsTask[][in] An array of tasks to wait.
options
Type: Microsoft.VisualStudio.Shell.VsTaskContinuationOptions[in] The continuation options set for the task.
taskBody
Type: Microsoft.VisualStudio.Shell.Interop.IVsTaskBody[in] Worker method for the task.
asyncState
Type: Object[in] The asynchronous state for the task.
Return Value
Type: Microsoft.VisualStudio.Shell.Interop.IVsTask
The task scheduler service that's creating the task.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IVsTaskSchedulerService. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
The task service takes ownership of dependent tasks after this call.
.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.