Task.ConfigureAwait(Boolean) Método

Definição

Configura um awaiter usado para aguardar este 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

Parâmetros

continueOnCapturedContext
Boolean

true para tentar realizar marshaling da continuação de volta ao contexto original capturado; caso contrário, false.true to attempt to marshal the continuation back to the original context captured; otherwise, false.

Retornos

Um objeto usado para aguardar essa tarefa.An object used to await this task.

Aplica-se a