WorkflowApplication.InstanceStore Egenskap
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Hämtar eller anger ett objekt som ger åtkomst till det beständiga tillståndet för den aktuella instansen av arbetsflödesprogrammet.
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
Egenskapsvärde
Ett instansarkiv.
Exempel
I följande exempel skapas en WorkflowApplication-instans och sedan konfigureras InstanceStore med hjälp av en SqlWorkflowInstanceStore. Det här kodexemplet är en del av How to: Create and Run a Long Running Workflow, som ingår i 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);