ChannelListenerBase.OnBeginWaitForChannel(TimeSpan, AsyncCallback, Object) 方法

定義

在衍生類別內實作時,提供開始等候通道抵達時的擴充點。When implemented in a derived class, provides a point of extensibility when starting to wait for a channel to arrive.

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

參數

timeout
TimeSpan

指定在逾時前,開始等候作業必須完成之時間的 TimeSpanThe TimeSpan that specifies how long the on begin wait operation has to complete before timing out.

callback
AsyncCallback

AsyncCallback 委派,這個委派會接收非同步開始等候作業完成的通知。The AsyncCallback delegate that receives the notification of the asynchronous operation on begin wait completion.

state
Object

應用程式所指定的物件,其中包含與非同步開始等候作業相關聯的狀態資訊。An object, specified by the application, that contains state information associated with the asynchronous on begin wait operation.

傳回

參考非同步開始等候作業的 IAsyncResultThe IAsyncResult that references the asynchronous on begin wait operation.

適用於