HttpResponse::BeginFlush Method (AsyncCallback^, Object^)

.NET Framework (current version)
 

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
)

Parameters

callback
Type: System::AsyncCallback^

The callback object.

state
Type: System::Object^

The response state.

Return Value

Type: System::IAsyncResult^

The asynchronous result object.

Exception Condition
HttpException

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
Show: