HttpResponse.BeginFlush(AsyncCallback, Object) Method

Definition

Sends the currently buffered response to the client.

public IAsyncResult BeginFlush (AsyncCallback callback, object state);

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.

Applies to

제품 버전
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1