This documentation is archived and is not being maintained.

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

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);

System.Object
  System.Workflow.ComponentModel.WorkflowChanges

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 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Show: