WorkflowApplication.InstanceStore Właściwość

Definicja

Pobiera lub ustawia obiekt, który zapewnia dostęp do utrwalonego stanu bieżącego wystąpienia aplikacji przepływu pracy.

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

Wartość właściwości

Magazyn wystąpień.

Przykłady

Poniższy przykład tworzy wystąpienie WorkflowApplication, a następnie konfiguruje InstanceStore element przy użyciu klasy SqlWorkflowInstanceStore. Ten przykład kodu jest częścią artykułu How to: Create and Run a Long Running Workflow (Jak utworzyć i uruchomić długotrwały przepływ pracy), który jest częścią samouczka Wprowadzenie [.NET Framework 4.5].

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

WorkflowApplication wfApp = new WorkflowApplication(wf);

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

Dotyczy