HttpResponse.BeginFlush(AsyncCallback, Object) 方法

定義

將目前已緩衝的回應傳送到用戶端。Sends the currently buffered response to the client.

public:
 IAsyncResult ^ BeginFlush(AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginFlush (AsyncCallback callback, object state);
member this.BeginFlush : AsyncCallback * obj -> IAsyncResult
Public Function BeginFlush (callback As AsyncCallback, state As Object) As IAsyncResult

參數

callback
AsyncCallback

回呼物件。The callback object.

state
Object

回應狀態。The response state.

傳回

非同步結果物件。The asynchronous result object.

例外狀況

已經完成回應。The response is already completed.

備註

如果基礎HttpWorkerRequest物件支援非同步清除作業,而此方法是從非同步模組事件或非同步處理常式中呼叫,則會以非同步方式執行清除操作。If the underlying HttpWorkerRequest object supports asynchronous flush operations and this method is called from an asynchronous module event or from an asynchronous handler, the flush operation is performed asynchronously. 否則,會以同步方式執行清除作業。Otherwise, the flush operation is performed synchronously. IIS 6.0 和更新版本支援非同步清除。Asynchronous flush is supported for IIS 6.0 and later.

適用於