VsTaskLibraryHelper::AsVsTask<T> Method (JoinableTask<T>^)

 

Wraps a JoinableTask<T> instance in an IVsTask that can be returned to COM clients.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
generic<typename T>
[ExtensionAttribute]
static IVsTask^ AsVsTask(
	JoinableTask<T>^ joinableTask
)

Parameters

joinableTask
Type: Microsoft.VisualStudio.Threading::JoinableTask<T>^

The task to wrap.

Type Parameters

T

The type of value returned by the asynchronous operation.

Return to top
Show: