Compartir a través de


IVsTask.ContinueWithEx(UInt32, UInt32, IVsTaskBody, Object) Method

Definition

Appends the provided action (using the specified options) 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 ^ ContinueWithEx(System::UInt32 context, System::UInt32 options, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ pTaskBody, System::Object ^ pAsyncState);
public:
 Microsoft::VisualStudio::Shell::Interop::IVsTask ^ ContinueWithEx(unsigned int context, unsigned int options, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ pTaskBody, Platform::Object ^ pAsyncState);
Microsoft::VisualStudio::Shell::Interop::IVsTask ContinueWithEx(unsigned int context, unsigned int options, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody const & pTaskBody, winrt::Windows::Foundation::IInspectable const & pAsyncState);
public Microsoft.VisualStudio.Shell.Interop.IVsTask ContinueWithEx (uint context, uint options, Microsoft.VisualStudio.Shell.Interop.IVsTaskBody pTaskBody, object pAsyncState);
abstract member ContinueWithEx : uint32 * uint32 * Microsoft.VisualStudio.Shell.Interop.IVsTaskBody * obj -> Microsoft.VisualStudio.Shell.Interop.IVsTask
Public Function ContinueWithEx (context As UInteger, options As UInteger, pTaskBody As IVsTaskBody, pAsyncState As Object) As IVsTask

Parameters

context
UInt32

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

options
UInt32

[in] Allows setting task continuation options. Values are from __VSTASKCONTINUATIONOPTIONS.

pTaskBody
IVsTaskBody

[in] Action to be executed.

pAsyncState
Object

[in] The asynchronous state of the task.

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