InstanceStore.BeginTryCommand メソッド

定義

永続化プロバイダーは、特定の永続化コマンドを実行できるかどうかを決定するこのメソッドを実装します。 コマンドを実行できる場合は、コマンドを非同期的に実行します。

protected public:
 virtual IAsyncResult ^ BeginTryCommand(System::Runtime::DurableInstancing::InstancePersistenceContext ^ context, System::Runtime::DurableInstancing::InstancePersistenceCommand ^ command, TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
protected internal virtual IAsyncResult BeginTryCommand(System.Runtime.DurableInstancing.InstancePersistenceContext context, System.Runtime.DurableInstancing.InstancePersistenceCommand command, TimeSpan timeout, AsyncCallback callback, object state);
abstract member BeginTryCommand : System.Runtime.DurableInstancing.InstancePersistenceContext * System.Runtime.DurableInstancing.InstancePersistenceCommand * TimeSpan * AsyncCallback * obj -> IAsyncResult
override this.BeginTryCommand : System.Runtime.DurableInstancing.InstancePersistenceContext * System.Runtime.DurableInstancing.InstancePersistenceCommand * TimeSpan * AsyncCallback * obj -> IAsyncResult
Protected Friend Overridable Function BeginTryCommand (context As InstancePersistenceContext, command As InstancePersistenceCommand, timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

パラメーター

context
InstancePersistenceContext

インスタンス コンテキスト。

command
InstancePersistenceCommand

実行する永続化コマンド。

timeout
TimeSpan

コマンド実行のタイムアウト値。

callback
AsyncCallback

非同期操作の完了の通知を受け取る非同期コールバック デリゲート。

state
Object

状態情報。

返品

非同期操作の状態。

注釈

コマンドを実行できる場合、永続化プロバイダーは InstancePersistenceContext で関連するメソッドを呼び出して、コマンドの結果を提供します。

Warning

このメソッドはvirtualではなくabstractとして宣言されていますが、実装はありません。 機能を提供するには、このメソッドをオーバーライドする必要があります。

適用対象