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。