Share via


InstanceStore.BeginExecute メソッド

定義

LoadWorkflowCommandSaveWorkflowCommand などの永続化コマンドを非同期で実行します。

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 メソッドを呼び出して、インスタンス ハンドルを取得します。 インスタンス ハンドルは、インスタンス、インスタンス所有者、インスタンス ロックなどのコマンドのコンテキストとサブジェクトを表すエンティティにバインドできます。 インスタンス ハンドルに対して一度に発行できるコマンドは 1 つだけです。

適用対象