WorkflowApplication.InstanceStore Proprietà

Definizione

Ottiene o imposta un oggetto che fornisce accesso allo stato persistente dell'istanza corrente dell'applicazione del flusso di lavoro.

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

Valore della proprietà

Un archivio di istanze.

Esempio

Nell'esempio seguente viene creata un'istanza WorkflowApplication, quindi viene configurato InstanceStore utilizzando un oggetto SqlWorkflowInstanceStore. Questo esempio di codice fa parte di Procedura: Creare ed eseguire un flusso di lavoro a esecuzione prolungata, che fa parte dell'esercitazione Introduzione [.NET Framework 4.5].

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

WorkflowApplication wfApp = new WorkflowApplication(wf);

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

Si applica a