共用方式為


InstanceStore.WaitForEvents(InstanceHandle, TimeSpan) 方法

定義

工作流程主機通常會叫用這個方法,等候事件收到信號。

public:
 System::Collections::Generic::List<System::Runtime::DurableInstancing::InstancePersistenceEvent ^> ^ WaitForEvents(System::Runtime::DurableInstancing::InstanceHandle ^ handle, TimeSpan timeout);
public System.Collections.Generic.List<System.Runtime.DurableInstancing.InstancePersistenceEvent> WaitForEvents (System.Runtime.DurableInstancing.InstanceHandle handle, TimeSpan timeout);
member this.WaitForEvents : System.Runtime.DurableInstancing.InstanceHandle * TimeSpan -> System.Collections.Generic.List<System.Runtime.DurableInstancing.InstancePersistenceEvent>
Public Function WaitForEvents (handle As InstanceHandle, timeout As TimeSpan) As List(Of InstancePersistenceEvent)

參數

handle
InstanceHandle

已繫結至事件的執行個體控制代碼。

timeout
TimeSpan

等候作業逾時之後的時間範圍。

傳回

InstancePersistenceEvent 物件的清單。

適用於