ConfiguredCancelableAsyncEnumerable<T>.ConfigureAwait(Boolean) Méthode

Définition

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

ConfiguredCancelableAsyncEnumerable<T>

Énumérable configuré.

Remarques

Cela remplacera toute valeur précédente définie par ConfigureAwait(Boolean) cette itération.

S’applique à