WorkflowApplication.Load Method (Guid)
.NET Framework 4.5
Loads the specified workflow instance into memory from an instance store.
Namespace: System.Activities
Assembly: System.Activities (in System.Activities.dll)
Parameters
- instanceId
- Type: System.Guid
A globally unique 128-bit identifier for the workflow instance.
The following example calls Load to load persisted workflow instance from a SqlWorkflowInstanceStore. This example is from the LoadAndCompleteInstance method in the Persisting a Workflow Instance sample.
string input = Console.ReadLine(); WorkflowApplication application = new WorkflowApplication(activity); application.InstanceStore = instanceStore; application.Completed = (workflowApplicationCompletedEventArgs) => { Console.WriteLine("\nWorkflowApplication has Completed in the {0} state.", workflowApplicationCompletedEventArgs.CompletionState); }; application.Unloaded = (workflowApplicationEventArgs) => { Console.WriteLine("WorkflowApplication has Unloaded\n"); instanceUnloaded.Set(); }; application.Load(id); //this resumes the bookmark setup by readline application.ResumeBookmark(readLineBookmark, input); instanceUnloaded.WaitOne();
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.