HttpResponseWrapper.FlushAsync 方法

定義

非同步地將目前緩衝中的所有輸出傳送到用戶端。

public:
 override System::Threading::Tasks::Task ^ FlushAsync();
public override System.Threading.Tasks.Task FlushAsync();
override this.FlushAsync : unit -> System.Threading.Tasks.Task
Public Overrides Function FlushAsync () As Task

傳回

一個 Task 代表非同步操作的物件。

備註

此方法在任務中儲存所有非使用例外,該方法的同步對應程式可拋出這些例外。 如果回傳的任務中儲存了例外,該例外會在等待任務時拋出。 使用例外錯誤,例如 ArgumentException,仍會同步拋出。 關於儲存的例外,請參見由 Flush()拋出的例外。

適用於