Task.ConfigureAwait(Boolean) Task.ConfigureAwait(Boolean) Task.ConfigureAwait(Boolean) Task.ConfigureAwait(Boolean) Method

Définition

Configure un élément awaiter utilisé pour attendre cette Task.Configures an awaiter used to await this Task.

public:
 System::Runtime::CompilerServices::ConfiguredTaskAwaitable ConfigureAwait(bool continueOnCapturedContext);
public System.Runtime.CompilerServices.ConfiguredTaskAwaitable ConfigureAwait (bool continueOnCapturedContext);
member this.ConfigureAwait : bool -> System.Runtime.CompilerServices.ConfiguredTaskAwaitable
Public Function ConfigureAwait (continueOnCapturedContext As Boolean) As ConfiguredTaskAwaitable

Paramètres

continueOnCapturedContext
Boolean Boolean Boolean Boolean

true en cas de tentative de marshaling de la continuation vers le contexte d'origine capturé ; sinon, false.true to attempt to marshal the continuation back to the original context captured; otherwise, false.

Retours

Objet utilisé pour attendre cette tâche.An object used to await this task.

S’applique à