ReceiveContext.OnBeginComplete(TimeSpan, AsyncCallback, Object) 方法

定义

在状态机异步转换到带指定的超时值、异步回调和状态数据的完成状态时调用。

protected:
 abstract IAsyncResult ^ OnBeginComplete(TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
protected abstract IAsyncResult OnBeginComplete (TimeSpan timeout, AsyncCallback callback, object state);
abstract member OnBeginComplete : TimeSpan * AsyncCallback * obj -> IAsyncResult
Protected MustOverride Function OnBeginComplete (timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

参数

timeout
TimeSpan

要完成的完成操作的超时值。

callback
AsyncCallback

可接收异步操作完成通知的异步回调委托。

state
Object

用户定义的状态数据。

返回

一个引用异步操作的 IAsyncResult

适用于