ActivityDesigner.OnConnected(ConnectionPoint, ConnectionPoint) 方法

定義

當在兩個連線點之間建立連線時,通知 ActivityDesignerNotifies the ActivityDesigner when a connection is established between two connection points.

protected:
 virtual void OnConnected(System::Workflow::ComponentModel::Design::ConnectionPoint ^ source, System::Workflow::ComponentModel::Design::ConnectionPoint ^ target);
protected virtual void OnConnected (System.Workflow.ComponentModel.Design.ConnectionPoint source, System.Workflow.ComponentModel.Design.ConnectionPoint target);
abstract member OnConnected : System.Workflow.ComponentModel.Design.ConnectionPoint * System.Workflow.ComponentModel.Design.ConnectionPoint -> unit
override this.OnConnected : System.Workflow.ComponentModel.Design.ConnectionPoint * System.Workflow.ComponentModel.Design.ConnectionPoint -> unit
Protected Overridable Sub OnConnected (source As ConnectionPoint, target As ConnectionPoint)

參數

source
ConnectionPoint

目前活動設計工具上的來源 ConnectionPoint。The source ConnectionPoint on the current activity designer.

target
ConnectionPoint

要連接之活動設計工具上的目標 ConnectionPoint。The target ConnectionPoint on the activity designer to connect to.

實作

System.Workflow.ComponentModel.Design.IConnectableDesigner.OnConnected(System.Workflow.ComponentModel.Design.ConnectionPoint,System.Workflow.ComponentModel.Design.ConnectionPoint)

備註

OnConnected 沒有預設的行為。OnConnected has no default behavior. 您必須從衍生自 ActivityDesigner 的類別中覆寫這個方法,以在兩個設計工具之間建立連線時提供處理。You must override this method in a class that derives from ActivityDesigner to provide processing when a connection is made between two designers.

適用於