ExecutionType Enumeração

Definição

Cuidado

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

Especifica o modo de execução para atividades.Specifies the execution mode for activities.

public enum class ExecutionType
public enum ExecutionType
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public enum ExecutionType
type ExecutionType = 
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type ExecutionType = 
Public Enum ExecutionType
Herança
ExecutionType
Atributos

Campos

Parallel 1

Executes atividades em paralelo.Executes activities in parallel.

Sequence 0

Executes atividades sequencialmente.Executes activities in sequential order. Cada atividade é executada por sua vez, depois da conclusão da execução da atividade anterior.Each activity is executed in turn, after the previous activity has finished running.

Exemplos

O exemplo de código a seguir mostra como definir o modo de execução para atividades usando a ExecutionType enumeração.The following code example shows how to set the execution mode for activities using the ExecutionType enumeration. Este exemplo de código faz parte do exemplo do SDK do Replicator do arquivo SimpleReplicatorWorkflow. cs.This code example is part of the Replicator SDK Sample from the Simplereplicatorworkflow.cs file. Para obter mais informações, consulte usando o Replicator.For more information, see Using Replicator.

this.CanModifyActivities = true;
System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
this.throwActivity1 = new System.Workflow.ComponentModel.ThrowActivity();
activitybind1.Name = "ThrowWorkflow";
activitybind1.Path = "ThrownException";
//
// throwActivity1
//
this.throwActivity1.Name = "throwActivity1";
this.throwActivity1.SetBinding(System.Workflow.ComponentModel.ThrowActivity.FaultProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
//
// ThrowWorkflow
//
this.Activities.Add(this.throwActivity1);
this.Name = "ThrowWorkflow";
this.CanModifyActivities = false;
Me.CanModifyActivities = True
Dim activitybind1 As New System.Workflow.ComponentModel.ActivityBind()
Me.throwActivity1 = New System.Workflow.ComponentModel.ThrowActivity()
activitybind1.Name = "ThrowWorkflow"
activitybind1.Path = "ThrownException"
' 
' throwActivity1
' 
Me.throwActivity1.Name = "throwActivity1"
Me.throwActivity1.SetBinding(System.Workflow.ComponentModel.ThrowActivity.FaultProperty, activitybind1)
' 
' ThrowWorkflow
' 
Me.Activities.Add(Me.throwActivity1)
Me.Name = "ThrowWorkflow"
Me.CanModifyActivities = False

Comentários

Observação

Este material discute tipos e namespaces obsoletos.This material discusses types and namespaces that are obsolete. Para obter mais informações, consulte Deprecated Types in Windows Workflow Foundation 4.5 (Tipos preteridos no Windows Workflow Foundation 4.5).For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

Aplica-se a