WorkflowInstance.ApplyWorkflowChanges Method
Applies changes to the workflow instance specified by the WorkflowChanges object.
Assembly: System.Workflow.Runtime (in System.Workflow.Runtime.dll)
Parameters
- workflowChanges
- Type: System.Workflow.ComponentModel.WorkflowChanges
A WorkflowChanges specifying dynamic updates for the workflow instance.
| Exception | Condition |
|---|---|
| InvalidOperationException |
The workflow runtime engine is not running. |
The following example demonstrates calling ApplyWorkflowChanges to a WorkflowInstance object. This example is from the Ordering State Machine SDK sample, from the Mainform.cs file. For more information, see the Ordering State Machine Sample.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.