ModelElement.CanMerge 메서드
원본 요소를 이 요소에 추가할 수 있는지 여부를 확인합니다.
네임스페이스: Microsoft.VisualStudio.Modeling
어셈블리: Microsoft.VisualStudio.Modeling.Sdk.12.0(Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
구문
‘선언
Protected Overridable Function CanMerge ( _
rootElement As ProtoElementBase, _
elementGroupPrototype As ElementGroupPrototype _
) As Boolean
protected virtual bool CanMerge(
ProtoElementBase rootElement,
ElementGroupPrototype elementGroupPrototype
)
매개 변수
- rootElement
형식: Microsoft.VisualStudio.Modeling.ProtoElementBase
소스 요소를 나타내는 루트 ProtoElement입니다.값이 null인 경우 ElementGroupPrototype에 어떠한 ProtoElements도 포함되지 않으며 코드에서 ElementGroupPrototype 컨텍스트 정보를 검사해야 합니다.
- elementGroupPrototype
형식: Microsoft.VisualStudio.Modeling.ElementGroupPrototype
루트 ProtoElement가 들어 있는 ElementGroupPrototype입니다.
반환 값
형식: System.Boolean
ProtoElement로 표현된 소스 요소를 이 대상 요소에 추가할 수 있으면 true이고, 그렇지 않으면 false입니다.
설명
확장 또는 확장 된 병합할 준비가 된 보조 요소 병합 허용
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.