HttpWorkerRequest.BeginFlush(AsyncCallback, Object) Method

Definition

Sends the currently buffered response to the client.

C#
public virtual IAsyncResult BeginFlush(AsyncCallback callback, object state);

Parameters

callback
AsyncCallback

The method to call when a corresponding asynchronous operation completes.

state
Object

A user-provided object that distinguishes this particular asynchronous flush operation from other requests.

Returns

The worker request buffers the status, headers, and response body until an asynchronous flush operation is initiated. If the underlying HttpWorkerRequest object supports asynchronous flush and this method is called from an asynchronous module event or asynchronous handler, the send operation is performed asynchronously. Otherwise, the implementation performs a synchronous flush operation.

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1