Condividi tramite


Metodo AsyncTaskManager.Run<T> (Object, Func<CancellationToken, Task<T>>, CancellationTokenSource)

Spazio dei nomi:  Microsoft.TeamFoundation.Threading
Assembly:  Microsoft.TeamFoundation.Controls (in Microsoft.TeamFoundation.Controls.dll)

Sintassi

'Dichiarazione
Public Function Run(Of T) ( _
    id As Object, _
    function As Func(Of CancellationToken, Task(Of T)), _
    cancellationTokenSource As CancellationTokenSource _
) As Task(Of T)
public Task<T> Run<T>(
    Object id,
    Func<CancellationToken, Task<T>> function,
    CancellationTokenSource cancellationTokenSource
)

Parametri di tipo

  • T

Parametri

Valore restituito

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

Sicurezza di .NET Framework

Vedere anche

Riferimenti

AsyncTaskManager Classe

Overload Run

Spazio dei nomi Microsoft.TeamFoundation.Threading