SequentialWorkflowRootDesigner.CanBeParentedTo 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個值,指示是否 CompositeActivity 可以設定為與設計者相關活動的父節點。
public:
override bool CanBeParentedTo(System::Workflow::ComponentModel::Design::CompositeActivityDesigner ^ parentActivityDesigner);
public override bool CanBeParentedTo(System.Workflow.ComponentModel.Design.CompositeActivityDesigner parentActivityDesigner);
override this.CanBeParentedTo : System.Workflow.ComponentModel.Design.CompositeActivityDesigner -> bool
Public Overrides Function CanBeParentedTo (parentActivityDesigner As CompositeActivityDesigner) As Boolean
參數
- parentActivityDesigner
- CompositeActivityDesigner
去 CompositeActivityDesigner 檢查一下。
傳回
true允許與 parentActivityDesigner 相關的活動成為與 SequentialWorkflowRootDesigner相關活動的父;否則,。 false
備註
根設計者不能在工作流程設計表面上放置父活動設計者。 除非在繼承類別中被覆蓋,否則 CanBeParentedTo 返回 false。