ActivityDesigner.CanConnect(ConnectionPoint, ConnectionPoint) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个值,该值指示是否可以在当前活动设计器上的指定连接点与目标活动设计器上的指定连接点之间创建连接。
protected:
virtual bool CanConnect(System::Workflow::ComponentModel::Design::ConnectionPoint ^ source, System::Workflow::ComponentModel::Design::ConnectionPoint ^ target);
protected virtual bool CanConnect(System.Workflow.ComponentModel.Design.ConnectionPoint source, System.Workflow.ComponentModel.Design.ConnectionPoint target);
abstract member CanConnect : System.Workflow.ComponentModel.Design.ConnectionPoint * System.Workflow.ComponentModel.Design.ConnectionPoint -> bool
override this.CanConnect : System.Workflow.ComponentModel.Design.ConnectionPoint * System.Workflow.ComponentModel.Design.ConnectionPoint -> bool
Protected Overridable Function CanConnect (source As ConnectionPoint, target As ConnectionPoint) As Boolean
参数
- source
- ConnectionPoint
检查 ConnectionPoint 当前活动设计器。
- target
- ConnectionPoint
检查 ConnectionPoint 目标活动设计器。
返回
true 指示可以在源和目标之间创建连接;否则,为 false.
注解
除非在派生类中重写,否则 CanConnect 始终返回 true。