Redigeeri

Jagamisviis:


ActivityExecutionContext.ExecuteActivity(Activity) Method

Definition

Called by a composite activity to schedule the execution of a child activity. 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)

Parameters

activity
Activity

The executed Activity.

Exceptions

activity is a null reference (Nothing in Visual Basic).

activity is not a valid child of the 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.

The status is neither initialized nor Closed.

Remarks

If the status is Closed, the Activity is initialized and executed.

Applies to