共用方式為


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 委派 (Delegate),可在非同步等候通道作業完成時,收到通知。

state
Object

應用程式所指定的物件,其中包含與等候通道之非同步作業相關聯的狀態資訊。

傳回

參考非同步等候通道作業的 IAsyncResult

適用於