ChannelListenerBase.WaitForChannel(TimeSpan) 方法

定義

在衍生類別內實作時,等候通道抵達。When implemented in a derived class, waits for a channel to arrive.

public:
 virtual bool WaitForChannel(TimeSpan timeout);
public bool WaitForChannel (TimeSpan timeout);
abstract member WaitForChannel : TimeSpan -> bool
override this.WaitForChannel : TimeSpan -> bool
Public Function WaitForChannel (timeout As TimeSpan) As Boolean

參數

timeout
TimeSpan

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

傳回

如果通道在 timeout 指定的時間間隔過期之前抵達則為 true,否則為 falsetrue if a channel arrived before the interval of time specified by the timeout expired; otherwise false.

實作

適用於