ElementNameProvider.GetElementNames Method

Definition

Gets map of all unique element names to elements for a given container and embedded role ID. The map will only include elements that have the name property with which this name provider is associated.

protected:
 System::Collections::Generic::Dictionary<System::String ^, Microsoft::VisualStudio::Modeling::ModelElement ^> ^ GetElementNames(Microsoft::VisualStudio::Modeling::ModelElement ^ container, Microsoft::VisualStudio::Modeling::DomainRoleInfo ^ embeddedDomainRole, Microsoft::VisualStudio::Modeling::ModelElement ^ excludedElement);
protected System.Collections.Generic.Dictionary<string,Microsoft.VisualStudio.Modeling.ModelElement> GetElementNames (Microsoft.VisualStudio.Modeling.ModelElement container, Microsoft.VisualStudio.Modeling.DomainRoleInfo embeddedDomainRole, Microsoft.VisualStudio.Modeling.ModelElement excludedElement);
member this.GetElementNames : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.DomainRoleInfo * Microsoft.VisualStudio.Modeling.ModelElement -> System.Collections.Generic.Dictionary<string, Microsoft.VisualStudio.Modeling.ModelElement>
Protected Function GetElementNames (container As ModelElement, embeddedDomainRole As DomainRoleInfo, excludedElement As ModelElement) As Dictionary(Of String, ModelElement)

Parameters

container
ModelElement

Embedding element.

embeddedDomainRole
DomainRoleInfo

Domain role played by elements embedded by container.

excludedElement
ModelElement

Element to be excluded from the search (can be null).

Returns

Dictionary where keys are all unique names and values are first found element for a given name.

Exceptions

contianer or embeddedDomainRole is null.

GetElementNames only works for DomainProperty is of type string.

Applies to