WorkflowApplication.InstanceStore Eigenschaft

Definition

Ruft ein Objekt ab, das Zugriff auf den Persistenzstatus der aktuellen Instanz der Workflowanwendung bereitstellt, bzw. legt es fest.

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

Eigenschaftswert

InstanceStore

Ein Instanzspeicher.

Beispiele

Im folgenden Beispiel wird eine WorkflowApplication-Instanz erstellt und anschließend der InstanceStore mithilfe eines SqlWorkflowInstanceStore konfiguriert. Dieses Codebeispiel ist Teil des How to: Create and Run a Long Running Workflow, der Teil des Erste Schritte Lernprogramms [.NET Framework 4.5]ist.

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

WorkflowApplication wfApp = new WorkflowApplication(wf);

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

Gilt für