ReplicatorActivity.ExecutionType Property

Definition

Gets or sets the ExecutionType for the ReplicatorActivity.

public:
 property System::Workflow::Activities::ExecutionType ExecutionType { System::Workflow::Activities::ExecutionType get(); void set(System::Workflow::Activities::ExecutionType value); };
[System.ComponentModel.Browsable(true)]
public System.Workflow.Activities.ExecutionType ExecutionType { get; set; }
member this.ExecutionType : System.Workflow.Activities.ExecutionType with get, set
Public Property ExecutionType As ExecutionType

Property Value

Attributes

Examples

The following sample shows setting the ExecutionType property. This sample is from the Simple Replicator SDK sample. For more information, see Replicator Sample.

this.WhileLoop = new System.Workflow.Activities.WhileActivity();
this.Parallel = new System.Workflow.Activities.ParallelActivity();
this.Sequence1 = new System.Workflow.Activities.SequenceActivity();
this.Sequence2 = new System.Workflow.Activities.SequenceActivity();
this.ConsoleMessage1 = new System.Workflow.Activities.CodeActivity();
this.ConsoleMessage2 = new System.Workflow.Activities.CodeActivity();
// 
// WhileLoop
// 
this.WhileLoop.Activities.Add(this.Parallel);
codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.WhileCondition);
this.WhileLoop.Condition = codecondition1;
this.WhileLoop.Name = "WhileLoop";
// 
// Parallel
// 
this.Parallel.Activities.Add(this.Sequence1);
this.Parallel.Activities.Add(this.Sequence2);
this.Parallel.Name = "Parallel";
// 
// Sequence1
// 
this.Sequence1.Activities.Add(this.ConsoleMessage1);
this.Sequence1.Name = "Sequence1";
// 
// Sequence2
// 
this.Sequence2.Activities.Add(this.ConsoleMessage2);
this.Sequence2.Name = "Sequence2";
Me.WhileLoop = New System.Workflow.Activities.WhileActivity()
Me.Parallel = New System.Workflow.Activities.ParallelActivity()
Me.Sequence1 = New System.Workflow.Activities.SequenceActivity()
Me.Sequence2 = New System.Workflow.Activities.SequenceActivity()
Me.ConsoleMessage1 = New System.Workflow.Activities.CodeActivity()
Me.ConsoleMessage2 = New System.Workflow.Activities.CodeActivity()
' 
' WhileLoop
' 
Me.WhileLoop.Activities.Add(Me.Parallel)
AddHandler codecondition1.Condition, AddressOf Me.WhileCondition
Me.WhileLoop.Condition = codecondition1
Me.WhileLoop.Name = "WhileLoop"
' 
' Parallel
' 
Me.Parallel.Activities.Add(Me.Sequence1)
Me.Parallel.Activities.Add(Me.Sequence2)
Me.Parallel.Name = "Parallel"
' 
' Sequence1
' 
Me.Sequence1.Activities.Add(Me.ConsoleMessage1)
Me.Sequence1.Name = "Sequence1"
' 
' Sequence2
' 
Me.Sequence2.Activities.Add(Me.ConsoleMessage2)
Me.Sequence2.Name = "Sequence2"

Applies to

See also