ActivityDesigner.CanConnect(ConnectionPoint, ConnectionPoint) 方法
定义
返回一个值,该值指示能否在当前活动设计器上的指定连接点与目标活动设计器上的指定连接点之间创建连接。Returns a value that indicates whether a connection can be created between the specified connection point on the current activity designer and the specified connection point on a target activity designer.
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。The ConnectionPoint to check on the current activity designer.
- target
- ConnectionPoint
要在目标活动设计器上选中的 ConnectionPoint。The ConnectionPoint to check on the target activity designer.
返回
为 true 指示可在源和目标之间创建连接;否则为 false。true to indicate that a connection can be created between source and target; otherwise, false.
注解
除非在派生类中重写,否则 CanConnect 始终返回 true。Unless overridden in a derived class, CanConnect always returns true.