DomainRoleInfo.GetElementLinksToElement 方法 (ModelElement, ModelElement, Boolean)

获取链接在源和目标元素之间。

命名空间:  Microsoft.VisualStudio.Modeling
程序集:  Microsoft.VisualStudio.Modeling.Sdk.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 中)

语法

声明
Public Function GetElementLinksToElement ( _
    sourceRolePlayerElement As ModelElement, _
    targetRolePlayerElement As ModelElement, _
    excludeDerivedRolesLinks As Boolean _
) As ReadOnlyCollection(Of ElementLink)
public ReadOnlyCollection<ElementLink> GetElementLinksToElement(
    ModelElement sourceRolePlayerElement,
    ModelElement targetRolePlayerElement,
    bool excludeDerivedRolesLinks
)

参数

  • excludeDerivedRolesLinks
    类型:System.Boolean
    true 排除分配给子源或目标元素的链接;否则,错误。

返回值

类型:System.Collections.ObjectModel.ReadOnlyCollection<ElementLink>
源和目标元素之间的链接。

备注

子链接也会返回。

.NET Framework 安全性

请参见

参考

DomainRoleInfo 类

GetElementLinksToElement 重载

Microsoft.VisualStudio.Modeling 命名空间