ChannelListenerBase.OnWaitForChannel(TimeSpan) 方法

定義

在衍生類別內覆寫時,提供等候通道抵達時的擴充點。When overridden in a derived class, provides a point of extensibility when waiting for a channel to arrive.

protected:
 abstract bool OnWaitForChannel(TimeSpan timeout);
protected abstract bool OnWaitForChannel (TimeSpan timeout);
abstract member OnWaitForChannel : TimeSpan -> bool
Protected MustOverride Function OnWaitForChannel (timeout As TimeSpan) As Boolean

參數

timeout
TimeSpan

指定在逾時前必須等候通道作業完成之時間的 TimeSpanThe TimeSpan that specifies how long the on wait for a channel operation has to complete before timing out.

傳回

如果在 true 指定的時間間隔過期之前完成此方法則為 timeout,否則為 falsetrue if the method completed before the interval of time specified by the timeout expired; otherwise false.

適用於