This API is now obsolete.
Runs multiple instances of a child activity.
public ref class ReplicatorActivity sealed : System::Workflow::ComponentModel::CompositeActivity
[System.Drawing.ToolboxBitmap(typeof(System.Workflow.Activities.ReplicatorActivity), "Resources.Replicator.png")] [System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")] [System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.Activities.ReplicatorValidator))] [System.Workflow.Runtime.DebugEngine.WorkflowDebuggerStepping(System.Workflow.Runtime.DebugEngine.WorkflowDebuggerSteppingOption.Concurrent)] public sealed class ReplicatorActivity : System.Workflow.ComponentModel.CompositeActivity
type ReplicatorActivity = class inherit CompositeActivity
Public NotInheritable Class ReplicatorActivity Inherits CompositeActivity
The following code example shows how to create a new instance of the ReplicatorActivity class and define a handler for the Initialized event. This code example is part of the Replicator SDK Sample from the SimpleReplicatorWorkflow.Designer.cs file. For more information, see Using Replicator.
workflowRuntime.ServicesExceptionNotHandled += OnExceptionNotHandled;
AddHandler workflowRuntime.ServicesExceptionNotHandled, AddressOf OnExceptionNotHandled
This material discusses types and namespaces that are obsolete. For more information, see Deprecated Types in Windows Workflow Foundation 4.5.
The ReplicatorActivity 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, ReplicatorActivity may be a better solution than WhileActivity.
By default, a ReplicatorActivity is 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.
|ReplicatorActivity() ReplicatorActivity() ReplicatorActivity() ReplicatorActivity()||
Initializes a new instance of the ReplicatorActivity class.
|ReplicatorActivity(String) ReplicatorActivity(String) ReplicatorActivity(String) ReplicatorActivity(String)||
Initializes a new instance of the ReplicatorActivity class using the name of the activity.
|ChildCompletedEvent ChildCompletedEvent ChildCompletedEvent ChildCompletedEvent||
Occurs when the child activity instance of the ReplicatorActivity has completed.
|ChildInitializedEvent ChildInitializedEvent ChildInitializedEvent ChildInitializedEvent||
Occurs when the child activity instance of the ReplicatorActivity has initialized.
|CompletedEvent CompletedEvent CompletedEvent CompletedEvent||
Occurs when the ReplicatorActivity has completed.
|ExecutionTypeProperty ExecutionTypeProperty ExecutionTypeProperty ExecutionTypeProperty|
|InitialChildDataProperty InitialChildDataProperty InitialChildDataProperty InitialChildDataProperty|
|InitializedEvent InitializedEvent InitializedEvent InitializedEvent|
|UntilConditionProperty UntilConditionProperty UntilConditionProperty UntilConditionProperty|
|Activities Activities Activities Activities||
Gets the object representing the collection, ActivityCollection, of all child activities.(Inherited from CompositeActivity)
|AllChildrenComplete AllChildrenComplete AllChildrenComplete AllChildrenComplete||
Gets a value that indicates whether all child instances are complete.
|CanModifyActivities CanModifyActivities CanModifyActivities CanModifyActivities||
Gets or sets a value which controls whether the individual activities within Activities can be modified.(Inherited from CompositeActivity)
|CurrentChildData CurrentChildData CurrentChildData CurrentChildData||
Returns a list of all child activities.
|CurrentIndex CurrentIndex CurrentIndex CurrentIndex||
Gets the index position of the current child activity.
|Description Description Description Description||
Gets or sets the user-defined description of the Activity.(Inherited from Activity)
|DesignMode DesignMode DesignMode DesignMode||
Gets the value that indicates whether this instance is in design or run-time mode.(Inherited from DependencyObject)
|DynamicActivities DynamicActivities DynamicActivities DynamicActivities||
Gets an array of running child activity instances.
|Enabled Enabled Enabled Enabled||
Gets or sets a value that indicates whether this instance is enabled for execution and validation.(Inherited from Activity)
|EnabledActivities EnabledActivities EnabledActivities EnabledActivities||
Gets the read-only collection that represents the subset of Activities that are enabled.(Inherited from CompositeActivity)
|ExecutionResult ExecutionResult ExecutionResult ExecutionResult||
Gets the ActivityExecutionResult of the last attempt to run this instance.(Inherited from Activity)
|ExecutionStatus ExecutionStatus ExecutionStatus ExecutionStatus||
Gets the current ActivityExecutionStatus of this instance.(Inherited from Activity)
|ExecutionType ExecutionType ExecutionType ExecutionType|
|InitialChildData InitialChildData InitialChildData InitialChildData||
Gets or sets a list of child activity data.
|IsDynamicActivity IsDynamicActivity IsDynamicActivity IsDynamicActivity||
Gets information about whether the activity is executing within the default ActivityExecutionContext of the workflow instance.(Inherited from Activity)
|Name Name Name Name||
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)
|Parent Parent Parent Parent||Activity)|
|ParentDependencyObject ParentDependencyObject ParentDependencyObject ParentDependencyObject||DependencyObject)|
|QualifiedName QualifiedName QualifiedName QualifiedName||
Gets the qualified name of the activity. Qualified activity names are always unique in a workflow instance.(Inherited from Activity)
|Site Site Site Site||DependencyObject)|
|UntilCondition UntilCondition UntilCondition UntilCondition||
Gets or sets a completion condition that indicates when the ReplicatorActivity should finish.
|UserData UserData UserData UserData||
Gets an IDictionary that associates custom data with this class instance.(Inherited from DependencyObject)
|WorkflowInstanceId WorkflowInstanceId WorkflowInstanceId WorkflowInstanceId||
Gets the Guid associated with the instance.(Inherited from Activity)