BeginFlush Method

HttpResponse.BeginFlush Method (AsyncCallback, Object)

.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.

Exception Condition

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
Available since 4.5
Return to top
© 2015 Microsoft