ElementNameProvider.GetElementNames Method

Gets a map of all unique element names for the elements of a given container and embedded role ID.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)

Syntax

'Declaration
Protected Function GetElementNames ( _
    container As ModelElement, _
    embeddedDomainRole As DomainRoleInfo, _
    excludedElement As ModelElement _
) As Dictionary(Of String, ModelElement)
'Usage
Dim container As ModelElement 
Dim embeddedDomainRole As DomainRoleInfo 
Dim excludedElement As ModelElement 
Dim returnValue As Dictionary(Of String, ModelElement)

returnValue = Me.GetElementNames(container, _
    embeddedDomainRole, excludedElement)
protected Dictionary<string, ModelElement> GetElementNames(
    ModelElement container,
    DomainRoleInfo embeddedDomainRole,
    ModelElement excludedElement
)
protected:
Dictionary<String^, ModelElement^>^ GetElementNames(
    ModelElement^ container, 
    DomainRoleInfo^ embeddedDomainRole, 
    ModelElement^ excludedElement
)
protected function GetElementNames(
    container : ModelElement, 
    embeddedDomainRole : DomainRoleInfo, 
    excludedElement : ModelElement
) : Dictionary<String, ModelElement>

Parameters

Return Value

Type: System.Collections.Generic.Dictionary<String, ModelElement>
A Dictionary object where keys are all unique names and values are the first found element for a given name.

Exceptions

Exception Condition
ArgumentNullException

The container or embeddedDomainRole is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

ElementNameProvider Class

ElementNameProvider Members

Microsoft.VisualStudio.Modeling Namespace