TplExtensions.NoThrowValueTaskAwaiter(ValueTask, Boolean) Constructeur
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Initialise une nouvelle instance du TplExtensions.NoThrowValueTaskAwaiter struct.
public NoThrowValueTaskAwaiter(System.Threading.Tasks.ValueTask task, bool captureContext);
new Microsoft.VisualStudio.Threading.TplExtensions.NoThrowValueTaskAwaiter : System.Threading.Tasks.ValueTask * bool -> Microsoft.VisualStudio.Threading.TplExtensions.NoThrowValueTaskAwaiter
Public Sub New (task As ValueTask, captureContext As Boolean)
Paramètres
- task
- ValueTask
Tâche.
- captureContext
- Boolean
si la valeur true est [contexte de capture].