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 对象。

适用于