IChannelListener.BeginWaitForChannel(TimeSpan, AsyncCallback, Object) 方法

定义

开始一个等待通道到达的异步操作,此操作必须在指定时间间隔内完成。

public:
 IAsyncResult ^ BeginWaitForChannel(TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginWaitForChannel (TimeSpan timeout, AsyncCallback callback, object state);
abstract member BeginWaitForChannel : TimeSpan * AsyncCallback * obj -> IAsyncResult
Public Function BeginWaitForChannel (timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

参数

timeout
TimeSpan

TimeSpan,指定在超时前可用于完成等待通道操作的时间长度。

callback
AsyncCallback

接收异步等待通道操作完成通知的 AsyncCallback 委托。

state
Object

一个由应用程序指定的对象,它包含与异步等待通道操作相关联的状态信息。

返回

引用异步等待通道操作的 IAsyncResult

适用于