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
'Declaração
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
- container
Type: Microsoft.VisualStudio.Modeling.ModelElement
Embedding element.
- embeddedDomainRole
Type: Microsoft.VisualStudio.Modeling.DomainRoleInfo
Domain role played by elements embedded by container.
- excludedElement
Type: Microsoft.VisualStudio.Modeling.ModelElement
Element to be excluded from the search (can be null).
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.