Task.ConfigureAwait(Boolean) Metodo

Definizione

Configura un elemento awaiter usato per attendere questo oggetto 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

Parametri

continueOnCapturedContext
Boolean

true per provare a effettuare il marshalling della continuazione nel contesto originale acquisito; in caso contrario, false.true to attempt to marshal the continuation back to the original context captured; otherwise, false.

Restituisce

Oggetto usato per attendere questa attività.An object used to await this task.

Si applica a