Condividi tramite


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

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

Sintassi

'Dichiarazione
Public Function Run ( _
    function As Func(Of CancellationToken, Task), _
    cancellationTokenSource As CancellationTokenSource, _
    throwOnCanceled As Boolean _
) As Task
public Task Run(
    Func<CancellationToken, Task> function,
    CancellationTokenSource cancellationTokenSource,
    bool throwOnCanceled
)

Parametri

Valore restituito

Tipo: System.Threading.Tasks.Task

Sicurezza di .NET Framework

Vedere anche

Riferimenti

AsyncTaskManager Classe

Overload Run

Spazio dei nomi Microsoft.TeamFoundation.Threading