Partager via


AsyncTaskManager.Run, méthode (Object, Func<CancellationToken, Task>, CancellationTokenSource, Boolean)

Espace de noms :  Microsoft.TeamFoundation.Threading
Assembly :  Microsoft.TeamFoundation.Controls (dans Microsoft.TeamFoundation.Controls.dll)

Syntaxe

'Déclaration
Public Function Run ( _
    id As Object, _
    function As Func(Of CancellationToken, Task), _
    cancellationTokenSource As CancellationTokenSource, _
    throwOnCanceled As Boolean _
) As Task
public Task Run(
    Object id,
    Func<CancellationToken, Task> function,
    CancellationTokenSource cancellationTokenSource,
    bool throwOnCanceled
)

Paramètres

Valeur de retour

Type : System.Threading.Tasks.Task

Sécurité .NET Framework

Voir aussi

Référence

AsyncTaskManager Classe

Run, surcharge

Microsoft.TeamFoundation.Threading, espace de noms