WorkflowApplication.InstanceStore Propriété

Définition

Obtient ou définit un objet qui fournit l’accès à l’état persistant de l’instance actuelle de l’application de workflow.

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

Valeur de propriété

Magasin d’instances.

Exemples

L’exemple suivant crée une instance WorkflowApplication, puis configure l’utilisation d’un InstanceStoreSqlWorkflowInstanceStore. Cet exemple de code fait partie de How to : Create and Run a Long Running Workflow, qui fait partie du didacticiel 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);

S’applique à