ConfiguredCancelableAsyncEnumerable<T>.ConfigureAwait(Boolean) Méthode
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.
Configure la façon dont les attentes sur les tâches retournées à partir d’une itération asynchrone seront effectuées.
public:
System::Runtime::CompilerServices::ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait(bool continueOnCapturedContext);
public System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait (bool continueOnCapturedContext);
member this.ConfigureAwait : bool -> System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<'T>
Public Function ConfigureAwait (continueOnCapturedContext As Boolean) As ConfiguredCancelableAsyncEnumerable(Of T)
Paramètres
- continueOnCapturedContext
- Boolean
true
pour capturer et marshaler en retour vers le contexte actuel ; sinon, false
.
Retours
Énumérable configuré.
Remarques
Cela remplacera toute valeur précédente définie par ConfigureAwait(Boolean) cette itération.