CompositeActivityDesigner.OnContainedActivitiesChanged(ActivityCollectionChangeEventArgs) 方法

定義

發生於一個以上包含於設計工具內的活動變更時,Occurs when more than one activities contained within the designers have changed. 例如加入一個新的子活動或移除現有的子活動。This occurs, for example, when a new child activity is added or an existing child activity is removed.

protected:
 virtual void OnContainedActivitiesChanged(System::Workflow::ComponentModel::ActivityCollectionChangeEventArgs ^ listChangeArgs);
protected virtual void OnContainedActivitiesChanged (System.Workflow.ComponentModel.ActivityCollectionChangeEventArgs listChangeArgs);
abstract member OnContainedActivitiesChanged : System.Workflow.ComponentModel.ActivityCollectionChangeEventArgs -> unit
override this.OnContainedActivitiesChanged : System.Workflow.ComponentModel.ActivityCollectionChangeEventArgs -> unit
Protected Overridable Sub OnContainedActivitiesChanged (listChangeArgs As ActivityCollectionChangeEventArgs)

參數

listChangeArgs
ActivityCollectionChangeEventArgs

包含變更相關資訊的 ActivityCollectionChangeEventArgsAn ActivityCollectionChangeEventArgs containing information about the change.

例外狀況

listChangeArgs 包含 null 參考 (在 Visual Basic 中為 Nothing)。listChangeArgs contains a null reference (Nothing in Visual Basic).

備註

您可以使用 OnContainedActivitiesChanged 回應複合活動內的活動變更。Use OnContainedActivitiesChanged to respond to changes to activities inside the composite activity.

適用於