ConfiguredCancelableAsyncEnumerable<T>.ConfigureAwait(Boolean) 方法

定義

設定如何執行從非同步反覆項目傳回的工作 await。

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)

參數

continueOnCapturedContext
Boolean

true 則擷取和封送處理回到目前的內容,否則為 false

傳回

已設定的列舉項目。

備註

這會取代針對這個反覆項目設定 ConfigureAwait(Boolean) 的任何先前值。

適用於