Rediger

Del via


HttpResponse.BeginFlush(AsyncCallback, Object) Method

Definition

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

Parameters

callback
AsyncCallback

The callback object.

state
Object

The response state.

Returns

The asynchronous result object.

Exceptions

The response is already completed.

Remarks

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. Asynchronous flush is supported for IIS 6.0 and later.

Applies to