다음을 통해 공유


StructuredCompositeActivityDesigner.CanInsertActivities 메서드

정의

워크플로 디자인 화면의 지정된 위치에 지정된 활동을 StructuredCompositeActivityDesigner에 추가할 수 있는지 여부를 나타내는 값을 반환합니다.

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

매개 변수

insertLocation
HitTestInfo

활동을 삽입할 화면 위치가 들어 있는 HitTestInfo입니다.

activitiesToInsert
ReadOnlyCollection<Activity>

추가할 활동이 들어 있는 Activity 읽기 전용 컬렉션입니다.

반환

Boolean

지정된 활동을 워크플로 디자인 화면의 지정된 위치에 삽입할 수 있으면 true이고, 그렇지 않으면 false입니다.

예제

다음 예제에서는 자식 활동 삽입을 허용하지 않음으로써 StructuredCompositeActivityDesigner를 잠그는 방법을 보여 줍니다.

public override bool CanInsertActivities(HitTestInfo insertLocation, ReadOnlyCollection<Activity> activitiesToInsert)
{
    return false;
}
Public Overrides Function CanInsertActivities(ByVal insertLocation As HitTestInfo, ByVal activitiesToInsert As ReadOnlyCollection(Of Activity)) As Boolean
    Return False
End Function

적용 대상