ElementNameProvider.GetLinkNames 方法

定义

获取 > 在给定角色上连接到给定角色扮演者的链接的元素链接名称元素链接的地图。 该映射将仅包括具有此名称提供程序关联的 name 属性的链接。

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)

参数

rolePlayer
ModelElement

元素链接连接到。

domainRole
DomainRoleInfo

RolePlayer 在链接中扮演的角色。

excludedLink
ElementLink

要从搜索中排除的链接 (可以为 null) 。

返回

Dictionary<String,ModelElement>

字典,其中键是唯一的名称,值是第一个找到给定名称的链接。

例外

rolePlayer 或 domainRole 为 null。

GetLinkNames 方法仅适用于 DomainProperty 的类型为字符串。

适用于