ActivityDesigner.CanBeParentedTo(CompositeActivityDesigner) 方法

定义

返回一个值,该值指示是否可以将 a CompositeActivity 设置为与设计器关联的活动的父级。

public:
 virtual bool CanBeParentedTo(System::Workflow::ComponentModel::Design::CompositeActivityDesigner ^ parentActivityDesigner);
public virtual bool CanBeParentedTo(System.Workflow.ComponentModel.Design.CompositeActivityDesigner parentActivityDesigner);
abstract member CanBeParentedTo : System.Workflow.ComponentModel.Design.CompositeActivityDesigner -> bool
override this.CanBeParentedTo : System.Workflow.ComponentModel.Design.CompositeActivityDesigner -> bool
Public Overridable Function CanBeParentedTo (parentActivityDesigner As CompositeActivityDesigner) As Boolean

参数

parentActivityDesigner
CompositeActivityDesigner

CompositeActivityDesigner可以将其设置为父级。

返回

如果可以将 a 设置为与设计器关联的活动的父级,则为 /&;否则为

注解

此方法可用于测试设计器是否可以由特定 CompositeActivityDesigner父级。

当用户启动插入操作(如拖放或粘贴)时调用此方法。

适用于