ActivityExecutionContext.ExecuteActivity(Activity) Method
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.
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
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.
The ActivityExecutionContext has been disposed.
Remarks
If the status is Closed, the Activity is initialized and executed.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για