ReplicatorActivity.ExecutionType Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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; }
[<System.ComponentModel.Browsable(true)>]
member this.ExecutionType : System.Workflow.Activities.ExecutionType with get, set
Public Property ExecutionType As ExecutionType
Property Value
The ExecutionType for the ReplicatorActivity.
- 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
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.