HttpWorkerRequest.BeginFlush(AsyncCallback, Object) 方法

定义

向客户端发送当前所有缓冲的响应。Sends the currently buffered response to the client.

public:
 virtual IAsyncResult ^ BeginFlush(AsyncCallback ^ callback, System::Object ^ state);
public virtual IAsyncResult BeginFlush (AsyncCallback callback, object state);
abstract member BeginFlush : AsyncCallback * obj -> IAsyncResult
override this.BeginFlush : AsyncCallback * obj -> IAsyncResult
Public Overridable Function BeginFlush (callback As AsyncCallback, state As Object) As IAsyncResult

参数

callback
AsyncCallback

相应异步操作完成时要调用的方法。The method to call when a corresponding asynchronous operation completes.

state
Object

一个用户提供的对象,它将该特定的异步刷新操作与其他请求区别开来。A user-provided object that distinguishes this particular asynchronous flush operation from other requests.

返回

辅助请求缓冲区状态、标题和响应正文,直到生成创始异步的操作。The worker request buffers the status, headers, and response body until an asynchronous flush operation is initiated. 如果潜在的 HttpWorkerRequest 对象支持异步刷新,且该方法是被异步模块事件或异步处理程序所调用,则发送操作将以异步方式执行。If the underlying HttpWorkerRequest object supports asynchronous flush and this method is called from an asynchronous module event or asynchronous handler, the send operation is performed asynchronously. 否则,实现执行同步刷新操作。Otherwise, the implementation performs a synchronous flush operation.

适用于