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의 읽기 전용 배열입니다.

반환

Boolean

디자이너와 연결된 복합 활동에 활동을 삽입할 수 있으면 true이고, 그렇지 않으면 false입니다.

예제

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

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

설명

CanInsertActivities을 사용하여 활동 목록을 복합 활동에 삽입할 수 있는지 여부를 확인합니다.

적용 대상