Redigera

Dela via


WorkflowApplication.InstanceStore Property

Definition

Gets or sets an object that provides access to the persisted state of the current instance of the workflow application.

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

Property Value

An instance store.

Examples

The following example creates a WorkflowApplication instance and then configures the InstanceStore using a SqlWorkflowInstanceStore. This code example is part of How to: Create and Run a Long Running Workflow, which is part of the Getting Started Tutorial [.NET Framework 4.5].

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

WorkflowApplication wfApp = new WorkflowApplication(wf);

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

Applies to