共用方式為


CompositeActivity.OnActivityChangeAdd 方法

定義

加入活動時呼叫。

protected public:
 virtual void OnActivityChangeAdd(System::Workflow::ComponentModel::ActivityExecutionContext ^ executionContext, System::Workflow::ComponentModel::Activity ^ addedActivity);
protected internal virtual void OnActivityChangeAdd (System.Workflow.ComponentModel.ActivityExecutionContext executionContext, System.Workflow.ComponentModel.Activity addedActivity);
abstract member OnActivityChangeAdd : System.Workflow.ComponentModel.ActivityExecutionContext * System.Workflow.ComponentModel.Activity -> unit
override this.OnActivityChangeAdd : System.Workflow.ComponentModel.ActivityExecutionContext * System.Workflow.ComponentModel.Activity -> unit
Protected Friend Overridable Sub OnActivityChangeAdd (executionContext As ActivityExecutionContext, addedActivity As Activity)

參數

executionContext
ActivityExecutionContext

指定的 ActivityExecutionContext

addedActivity
Activity

指定的 Activity

例外狀況

executionContext 為 null 參考 (在 Visual Basic 中為 Nothing)。

-或-

addedActivity 為 null 參考 (Nothing)。

適用於