VsInvokableAsyncFunction<T> 委托

Used by the asynchronous task library helper to take an IVsTaskCompletionSource and return a Task Parallel Library (TPL) task.

命名空间:  Microsoft.VisualStudio.Shell
程序集:  Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)

语法

声明
Public Delegate Function VsInvokableAsyncFunction(Of T) ( _
    tcs As IVsTaskCompletionSource _
) As Task<(Of <<'(UTP>)>>)
public delegate Task<(Of <<'(UTP>)>>) VsInvokableAsyncFunction<T>(
    IVsTaskCompletionSource tcs
)

类型参数

  • T
    The type of the result produced by this task.

参数

返回值

类型:System.Threading.Tasks.Task<UTP>

备注

This delegate converts a returning System.Threading.Tasks.Task function to return an IVsTask instead. The delegate is provided by the caller and is used to return the System.Threading.Tasks.Task instance that would be converted to IVsTask.

请参见

参考

Microsoft.VisualStudio.Shell 命名空间