Share via


ElementNameProvider.GetLinkNames Method

Definition

Gets a map of element link name -> element link for links connected at given role to the given role player. The map will only include links that have the name property with which this name provider is associated.

protected:
 System::Collections::Generic::Dictionary<System::String ^, Microsoft::VisualStudio::Modeling::ModelElement ^> ^ GetLinkNames(Microsoft::VisualStudio::Modeling::ModelElement ^ rolePlayer, Microsoft::VisualStudio::Modeling::DomainRoleInfo ^ domainRole, Microsoft::VisualStudio::Modeling::ElementLink ^ excludedLink);
protected System.Collections.Generic.Dictionary<string,Microsoft.VisualStudio.Modeling.ModelElement> GetLinkNames (Microsoft.VisualStudio.Modeling.ModelElement rolePlayer, Microsoft.VisualStudio.Modeling.DomainRoleInfo domainRole, Microsoft.VisualStudio.Modeling.ElementLink excludedLink);
member this.GetLinkNames : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.DomainRoleInfo * Microsoft.VisualStudio.Modeling.ElementLink -> System.Collections.Generic.Dictionary<string, Microsoft.VisualStudio.Modeling.ModelElement>
Protected Function GetLinkNames (rolePlayer As ModelElement, domainRole As DomainRoleInfo, excludedLink As ElementLink) As Dictionary(Of String, ModelElement)

Parameters

rolePlayer
ModelElement

Element links are connected to.

domainRole
DomainRoleInfo

Role played by the rolePlayer in links.

excludedLink
ElementLink

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

Returns

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

Exceptions

rolePlayer or domainRole is null.

GetLinkNames method only works for DomainProperty is of type string.

Applies to