語言

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 。

適用於