Udostępnij za pośrednictwem


IVsTask.ContinueWith(UInt32, IVsTaskBody) Method

Definition

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.

public:
 Microsoft::VisualStudio::Shell::Interop::IVsTask ^ ContinueWith(System::UInt32 context, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ pTaskBody);
public:
 Microsoft::VisualStudio::Shell::Interop::IVsTask ^ ContinueWith(unsigned int context, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ pTaskBody);
Microsoft::VisualStudio::Shell::Interop::IVsTask ContinueWith(unsigned int context, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody const & pTaskBody);
public Microsoft.VisualStudio.Shell.Interop.IVsTask ContinueWith (uint context, Microsoft.VisualStudio.Shell.Interop.IVsTaskBody pTaskBody);
abstract member ContinueWith : uint32 * Microsoft.VisualStudio.Shell.Interop.IVsTaskBody -> Microsoft.VisualStudio.Shell.Interop.IVsTask
Public Function ContinueWith (context As UInteger, pTaskBody As IVsTaskBody) As IVsTask

Parameters

context
UInt32

[in] Where to run this task. Values are from __VSTASKRUNCONTEXT.

pTaskBody
IVsTaskBody

[in] Action to be executed.

Returns

A new IVsTask instance that has the current task as its parent.

Remarks

This method is safe to access from any thread.

Applies to