CompositeActivityDesigner.CanInsertActivities 方法

定义

返回一个值,该值指示是否可以将活动插入到与设计器关联的复合活动中。

public:
 virtual bool CanInsertActivities(System::Workflow::ComponentModel::Design::HitTestInfo ^ insertLocation, System::Collections::ObjectModel::ReadOnlyCollection<System::Workflow::ComponentModel::Activity ^> ^ activitiesToInsert);
public virtual bool CanInsertActivities(System.Workflow.ComponentModel.Design.HitTestInfo insertLocation, System.Collections.ObjectModel.ReadOnlyCollection<System.Workflow.ComponentModel.Activity> activitiesToInsert);
abstract member CanInsertActivities : System.Workflow.ComponentModel.Design.HitTestInfo * System.Collections.ObjectModel.ReadOnlyCollection<System.Workflow.ComponentModel.Activity> -> bool
override this.CanInsertActivities : System.Workflow.ComponentModel.Design.HitTestInfo * System.Collections.ObjectModel.ReadOnlyCollection<System.Workflow.ComponentModel.Activity> -> bool
Public Overridable Function CanInsertActivities (insertLocation As HitTestInfo, activitiesToInsert As ReadOnlyCollection(Of Activity)) As Boolean

参数

insertLocation
HitTestInfo

要插入活动的位置。

activitiesToInsert
ReadOnlyCollection<Activity>

要插入的 Activity 只读数组。

返回

true 如果活动可以插入到与设计器关联的复合活动中,则为 ;否则 false

注解

用于 CanInsertActivities 确定是否可以将活动列表插入到复合活动中。

适用于