ActivityExecutionContext.ExecuteActivity(Activity) Metodo
Definizione
Chiamata da un'attività composita per pianificare l’esecuzione di un'attività figlio.Called by a composite activity to schedule the execution of a child activity. Il runtime del flusso di lavoro impedisce l’esecuzione di un'attività figlio che non è nello stato inizializzato.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
Parametri
Eccezioni
activity
è un riferimento null (Nothing
in Visual Basic).activity
is a null reference (Nothing
in Visual Basic).
activity
non è un'attività figlio valida del ActivityExecutionContext.activity
is not a valid child of the ActivityExecutionContext. Questo significa che l'argomento è uguale alla proprietà associata Activity o che l'argomento non è nello stato commentato ed è un figlio di Activity associata 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.
L'interfaccia ActivityExecutionContext è stata eliminata.The ActivityExecutionContext has been disposed.
Commenti
Se lo stato è Closed, la classe Activity viene inizializzata ed eseguita.If the status is Closed, the Activity is initialized and executed.