共用方式為


InstanceStore.BeginWaitForEvents 方法

定義

開始非同步作業,以接聽由特定執行個體控制代碼的執行個體存放區引發的任何事件。

public:
 IAsyncResult ^ BeginWaitForEvents(System::Runtime::DurableInstancing::InstanceHandle ^ handle, TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginWaitForEvents (System.Runtime.DurableInstancing.InstanceHandle handle, TimeSpan timeout, AsyncCallback callback, object state);
member this.BeginWaitForEvents : System.Runtime.DurableInstancing.InstanceHandle * TimeSpan * AsyncCallback * obj -> IAsyncResult
Public Function BeginWaitForEvents (handle As InstanceHandle, timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

參數

handle
InstanceHandle

執行個體控制代碼。

timeout
TimeSpan

作業逾時之後的週期。

callback
AsyncCallback

在非同步作業完成後所呼叫的方法。

state
Object

包含有與非同步作業相關聯之狀態資訊的物件。

傳回

傳回 IAsyncResult 物件。

適用於