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

定义

使用指定的超时、异步回调和用户定义的状态数据开始异步完成操作。

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

参数

timeout
TimeSpan

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

callback
AsyncCallback

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

state
Object

用户定义的状态数据。

返回

一个引用异步完成操作的 IAsyncResult

适用于