Freigeben über


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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'Declaration
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
)
protected:
Dictionary<String^, ModelElement^>^ GetElementNames(
    ModelElement^ container, 
    DomainRoleInfo^ embeddedDomainRole, 
    ModelElement^ excludedElement
)
member GetElementNames : 
        container:ModelElement * 
        embeddedDomainRole:DomainRoleInfo * 
        excludedElement:ModelElement -> Dictionary<string, ModelElement> 
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

Microsoft.VisualStudio.Modeling Namespace