Szerkesztés

Megosztás a következőn keresztül:


SequentialWorkflowRootDesigner.CanBeParentedTo Method

Definition

Returns a value that indicates whether a CompositeActivity can be set as the parent of the activity associated with the designer.

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

Parameters

parentActivityDesigner
CompositeActivityDesigner

The CompositeActivityDesigner to check.

Returns

true to allow the activity associated with parentActivityDesigner to be the parent of the activity associated with the SequentialWorkflowRootDesigner; otherwise, false.

Remarks

Root designers cannot have a parent activity designer on a workflow design surface. Unless overridden in an inheriting class, CanBeParentedTo returns false.

Applies to