StateActivity.OnActivityChangeAdd(ActivityExecutionContext, 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.
Determines if the activity being added is an EventDrivenActivity and if so, verifies whether the newly added event driven needs to be subscribed.
protected:
override void OnActivityChangeAdd(System::Workflow::ComponentModel::ActivityExecutionContext ^ executionContext, System::Workflow::ComponentModel::Activity ^ addedActivity);
protected override void OnActivityChangeAdd (System.Workflow.ComponentModel.ActivityExecutionContext executionContext, System.Workflow.ComponentModel.Activity addedActivity);
override this.OnActivityChangeAdd : System.Workflow.ComponentModel.ActivityExecutionContext * System.Workflow.ComponentModel.Activity -> unit
Protected Overrides Sub OnActivityChangeAdd (executionContext As ActivityExecutionContext, addedActivity As Activity)
Parameters
- executionContext
- ActivityExecutionContext
The execution context for the activity.
- addedActivity
- Activity
The activity added to the StateActivity.
Remarks
This is method is called whenever a user adds a child to a CompositeActivity through workflow changes. Note that this method is defined in CompositeActivity and overridden by the StateActivity, where it checks whether the activity being added is an EventDrivenActivity and if so, verifies if the newly added event driven needs to be subscribed.