Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
BeginFlush Method

HttpResponse.BeginFlush Method

.NET Framework 4.6 and 4.5

Sends the currently buffered response to the client.

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

public IAsyncResult BeginFlush(
	AsyncCallback callback,
	Object state


Type: System.AsyncCallback

The callback object.

Type: System.Object

The response state.

Return Value

Type: System.IAsyncResult
The asynchronous result object.


The response is already completed.

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.

.NET Framework

Supported in: 4.6, 4.5
© 2015 Microsoft