WorkflowApplication.InstanceStore Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om