ActivityDesigner.OnConnected(ConnectionPoint, ConnectionPoint) 方法

定义

当在两个连接点之间建立连接时,向 ActivityDesigner 发出通知。Notifies 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

当前活动设计器上的源连接点。The source ConnectionPoint on the current activity designer.

target
ConnectionPoint

活动设计器上要连接到的目标连接点。The target ConnectionPoint on the activity designer to connect to.

注解

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.

适用于