共用方式為


IMessageSource.WaitForMessageAsync(TimeSpan) 方法

定義

public:
 System::Threading::Tasks::Task<bool> ^ WaitForMessageAsync(TimeSpan timeout);
public System.Threading.Tasks.Task<bool> WaitForMessageAsync (TimeSpan timeout);
abstract member WaitForMessageAsync : TimeSpan -> System.Threading.Tasks.Task<bool>
Public Function WaitForMessageAsync (timeout As TimeSpan) As Task(Of Boolean)

參數

timeout
TimeSpan

傳回

適用於