InstanceStore.BeginExecute 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
非同步執行持久化指令,如 LoadWorkflowCommand 和 SaveWorkflowCommand。
public:
IAsyncResult ^ BeginExecute(System::Runtime::DurableInstancing::InstanceHandle ^ handle, System::Runtime::DurableInstancing::InstancePersistenceCommand ^ command, TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginExecute(System.Runtime.DurableInstancing.InstanceHandle handle, System.Runtime.DurableInstancing.InstancePersistenceCommand command, TimeSpan timeout, AsyncCallback callback, object state);
member this.BeginExecute : System.Runtime.DurableInstancing.InstanceHandle * System.Runtime.DurableInstancing.InstancePersistenceCommand * TimeSpan * AsyncCallback * obj -> IAsyncResult
Public Function BeginExecute (handle As InstanceHandle, command As InstancePersistenceCommand, timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult
參數
- handle
- InstanceHandle
一個實例帳號。
- command
- InstancePersistenceCommand
要執行的命令。
- timeout
- TimeSpan
指令執行的逾時值。
- callback
- AsyncCallback
非同步回撥代理接收非同步操作完成通知。
- state
- Object
州政府資訊。
傳回
非同步操作的狀態。
備註
主機會呼叫 BeginExecute 該方法,對一個實例處理執行持久化指令,非同步執行。 主機透過呼叫 CreateInstanceHandle 該方法來取得實例代碼。 實例句柄可能綁定於代表指令上下文與主體的實體,例如實例、實例擁有者或實例鎖定。 同一時只能對一個實例句柄發出一個指令。