ActivityDesigner.CanConnect(ConnectionPoint, ConnectionPoint) 方法

定義

傳回值,這個值表示是否能在目前活動設計工具的指定連線點和目標活動設計工具的指定連線點之間建立連線。

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

適用於