DomainRoleInfo.GetElementLinks 方法 (ModelElement, Boolean)

當指定的項目時不扮演這個角色,請取得項目的連結。

命名空間:  Microsoft.VisualStudio.Modeling
組件:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 中)

語法

'宣告
Public Function GetElementLinks ( _
    rolePlayerElement As ModelElement, _
    excludeDerivedRolesLinks As Boolean _
) As ReadOnlyCollection(Of ElementLink)
public ReadOnlyCollection<ElementLink> GetElementLinks(
    ModelElement rolePlayerElement,
    bool excludeDerivedRolesLinks
)

參數

  • excludeDerivedRolesLinks
    型別:System.Boolean
    決定是否要排除已附加至衍生的角色執行者的連結。

傳回值

型別:System.Collections.ObjectModel.ReadOnlyCollection<ElementLink>
A ReadOnlyCollection<T>的連結。

.NET Framework 安全性

請參閱

參考

DomainRoleInfo 類別

GetElementLinks 多載

Microsoft.VisualStudio.Modeling 命名空間