Редагувати

Поділитися через


StateActivity.OnActivityChangeAdd(ActivityExecutionContext, Activity) Method

Definition

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.

Applies to

See also