HttpResponse.BeginFlush(AsyncCallback, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sends the currently buffered response to the client.
public:
IAsyncResult ^ BeginFlush(AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginFlush (AsyncCallback callback, object state);
member this.BeginFlush : AsyncCallback * obj -> IAsyncResult
Public Function BeginFlush (callback As AsyncCallback, state As Object) As IAsyncResult
Parameters
- callback
- AsyncCallback
The callback object.
- state
- Object
The response state.
Returns
The asynchronous result object.
Exceptions
The response is already completed.
Remarks
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.