ActivityExecutionContext.ExecuteActivity(Activity) Método

Definición

Llamado por una actividad compuesta para programar la ejecución de una actividad secundaria.Called by a composite activity to schedule the execution of a child activity. El tiempo de ejecución del flujo de trabajo deniega la ejecución de una actividad secundaria que no está en el estado inicializado.The workflow runtime disallows execution of a child activity that is not in the initialized state.

public:
 void ExecuteActivity(System::Workflow::ComponentModel::Activity ^ activity);
public void ExecuteActivity (System.Workflow.ComponentModel.Activity activity);
member this.ExecuteActivity : System.Workflow.ComponentModel.Activity -> unit
Public Sub ExecuteActivity (activity As Activity)

Parámetros

activity
Activity

El Activity ejecutado.The executed Activity.

Excepciones

activity es una referencia nula (Nothing en Visual Basic).activity is a null reference (Nothing in Visual Basic).

activity no es un elemento secundario válido de ActivityExecutionContext.activity is not a valid child of the ActivityExecutionContext. Esto significa que o el argumento es igual al Activity asociado o que el argumento no está en estado marcado como comentario y es un elemento secundario de Activity asociado a ActivityExecutionContext.This means that either the argument is equal to the associated Activity or that the argument is not in the commented state and is a child of the Activity associated with this ActivityExecutionContext.

Ni se inicializa el estado ni Closed.The status is neither initialized nor Closed.

Comentarios

Si el estado es Closed, Activity se inicializa y ejecuta.If the status is Closed, the Activity is initialized and executed.

Se aplica a