ElementNameProvider.GetElementNames 메서드
요소가 지정 된 컨테이너와 id가 포함 된 역할에 대 한 모든 고유한 요소 이름 맵을 가져옵니다.
네임스페이스: Microsoft.VisualStudio.Modeling
어셈블리: Microsoft.VisualStudio.Modeling.Sdk.11.0(Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
구문
‘선언
Protected Function GetElementNames ( _
container As ModelElement, _
embeddedDomainRole As DomainRoleInfo, _
excludedElement As ModelElement _
) As Dictionary(Of String, ModelElement)
protected Dictionary<string, ModelElement> GetElementNames(
ModelElement container,
DomainRoleInfo embeddedDomainRole,
ModelElement excludedElement
)
매개 변수
- container
형식: Microsoft.VisualStudio.Modeling.ModelElement
요소를 포함 합니다.
- embeddedDomainRole
형식: Microsoft.VisualStudio.Modeling.DomainRoleInfo
컨테이너에서 포함 된 요소가 수행 하는 도메인 역할입니다.
- excludedElement
형식: Microsoft.VisualStudio.Modeling.ModelElement
요소 (null 일 수)는 검색에서 제외 될 수 있습니다.
반환 값
형식: System.Collections.Generic.Dictionary<String, ModelElement>
Dictionary 개체 키 고유 이름과 값 어디 주어진 이름에 대해 찾은 첫 번째 요소입니다.
예외
예외 | 조건 |
---|---|
ArgumentNullException | container 또는 embeddedDomainRole가 nullNull 참조(Visual Basic의 경우 Nothing)인 경우 |
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.