Runs multiple instances of a child activity.
Assembly: System.Workflow.Activities (in System.Workflow.Activities.dll)
[ToolboxBitmapAttribute(typeof(ReplicatorActivity), "Resources.Replicator.png")] [WorkflowDebuggerSteppingAttribute(WorkflowDebuggerSteppingOption.Concurrent)] [ObsoleteAttribute("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")] public sealed class ReplicatorActivity : CompositeActivity
Gets a value that indicates whether all child instances are complete.
Returns a list of all child activities.
Gets the index position of the current child activity.
Gets the value that indicates whether this instance is in design or run-time mode.(Inherited from DependencyObject.)
Gets an array of running child activity instances.
Gets or sets a value that indicates whether this instance is enabled for execution and validation.(Inherited from Activity.)
Gets or sets the ExecutionType for the .
Gets or sets a list of child activity data.
Gets or sets the name of this instance. This name must conform to the variable naming convention of the programming language that is being used in the Workflow project.(Inherited from Activity.)
Gets the qualified name of the activity. Qualified activity names are always unique in a workflow instance.(Inherited from Activity.)
Gets or sets a completion condition that indicates when theshould finish.
Occurs when the child activity instance of thehas completed.
Occurs when the child activity instance of thehas initialized.
Occurs when thehas completed.
Occurs when the activity execution is canceled. (Inherited from Activity.)
Occurs immediately after thefinishes running a child activity instance.
Occurs immediately after a child activity is initialized.
Occurs when thecompletes.
Occurs when an exception is raised during the running of the instance.(Inherited from Activity.)
Occurs when thebegins to execute.
This material discusses types and namespaces that are obsolete. For more information, see Deprecated Types in Windows Workflow Foundation 4.5.
The WhileActivity.is similar to a for each statement in code. If you are presented with a task in which you repeat the same function on many different entities, may be a better solution than
By default, ais completed when all child instances have completed. You can override this behavior with a custom condition to use when the activity finishes. If this condition evaluates to true before all child instances have completed, then any running incomplete child instances are canceled.
The following code example shows how to create a new instance of the Initialized event. This code example is part of the Replicator SDK Sample from the SimpleReplicatorWorkflow.Designer.cs file. For more information, seeUsing Replicator.class and define a handler for the
Available since 3.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.