Delegato VsInvokableAsyncFunction<T>

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

Spazio dei nomi:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Sintassi

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

Parametri di tipo

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

Parametri

Valore restituito

Tipo: System.Threading.Tasks.Task<UTP>

Note

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.

Vedere anche

Riferimenti

Spazio dei nomi Microsoft.VisualStudio.Shell