HttpWorkerRequest.BeginFlush Method (AsyncCallback, Object)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Sends the currently buffered response to the client.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public virtual IAsyncResult BeginFlush(
	AsyncCallback callback,
	object state


Type: System.AsyncCallback

The method to call when a corresponding asynchronous operation completes.

Type: System.Object

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

Return Value

Type: System.IAsyncResult

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.

.NET Framework
Available since 4.5
Return to top