WorkflowApplication.InstanceStore プロパティ

定義

ワークフロー アプリケーションの現在のインスタンスの永続化された状態へのアクセスを提供するオブジェクトを取得または設定します。

public:
 property System::Runtime::DurableInstancing::InstanceStore ^ InstanceStore { System::Runtime::DurableInstancing::InstanceStore ^ get(); void set(System::Runtime::DurableInstancing::InstanceStore ^ value); };
public System.Runtime.DurableInstancing.InstanceStore InstanceStore { get; set; }
member this.InstanceStore : System.Runtime.DurableInstancing.InstanceStore with get, set
Public Property InstanceStore As InstanceStore

プロパティ値

インスタンス ストア。

次の例では、WorkflowApplication インスタンスを作成し、SqlWorkflowInstanceStoreを使用してInstanceStoreを構成します。 このコード例は方法: 実行時間の長いワークフローを作成して実行する方法 の一部です。これは、作業の開始チュートリアル [.NET Framework 4.5]の一部です。

Activity wf = new WriteLine
{
    Text = "Hello world."
};

WorkflowApplication wfApp = new WorkflowApplication(wf);

Console.WriteLine("Id: {0}", wfApp.Id);

適用対象