IVsTask.ContinueWith Method
Appends the provided action to this task to be run after the task is run to completion. The action is invoked on the context provided.
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 ContinueWith ( _
context As UInteger, _
pTaskBody As IVsTaskBody _
) As IVsTask
IVsTask ContinueWith(
uint context,
IVsTaskBody pTaskBody
)
IVsTask^ ContinueWith(
[InAttribute] unsigned int context,
[InAttribute] IVsTaskBody^ pTaskBody
)
abstract ContinueWith :
context:uint32 *
pTaskBody:IVsTaskBody -> IVsTask
function ContinueWith(
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
A new IVsTask instance that has the current task as its parent.
.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.