Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

WorkflowChanges Class

Represents a set of proposed changes to a running workflow instance.

Namespace: System.Workflow.ComponentModel
Assembly: System.Workflow.ComponentModel (in system.workflow.componentmodel.dll)

public sealed class WorkflowChanges
public final class WorkflowChanges
public final class WorkflowChanges
Not applicable.

All proposed changes to a running workflow instance must be made using a WorkflowChanges object.

When a WorkflowChanges object is constructed in application code (outside the workflow instance), the Activity object that is passed to the constructor must be the object that is returned by the GetWorkflowDefinition method of the WorkflowInstance class.

The following example demonstrates creating a new instance of a WorkflowChanges object. This example is from the Ordering State Machine SDK sample. For more information, see Ordering State Machine Sample.

// Create a new instance of the WorkflowChanges class for managing
// the in-memory changes to the workflow
WorkflowChanges changes = new WorkflowChanges(root);


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

© 2015 Microsoft