Udostępnij za pośrednictwem


Metoda DomainRoleInfo.GetElementLinksToElement<T> — (ModelElement, ModelElement, Boolean)

Zwraca kolekcję powiązań między rolę źródłową i docelową.

Przestrzeń nazw:  Microsoft.VisualStudio.Modeling
Zestaw:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (w Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

Składnia

'Deklaracja
Public Function GetElementLinksToElement(Of T As ElementLink) ( _
    sourceRolePlayerElement As ModelElement, _
    targetRolePlayerElement As ModelElement, _
    excludeDerivedRolesLinks As Boolean _
) As ReadOnlyCollection(Of T)
public ReadOnlyCollection<T> GetElementLinksToElement<T>(
    ModelElement sourceRolePlayerElement,
    ModelElement targetRolePlayerElement,
    bool excludeDerivedRolesLinks
)
where T : ElementLink

Parametry typów

  • T
    Typ łącza.

Parametry

  • excludeDerivedRolesLinks
    Typ: System.Boolean
    wartość PRAWDA, aby wykluczyć łącza, które są przypisane do źródłowego lub docelowego elementu podrzędnego; w przeciwnym razie wartość false.

Wartość zwracana

Typ: System.Collections.ObjectModel.ReadOnlyCollection<T>
Łącza między elementem źródłowej i docelowej.

Uwagi

Zwracane są również łącza podrzędne.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

DomainRoleInfo Klasa

Przeciążenie GetElementLinksToElement

Przestrzeń nazw Microsoft.VisualStudio.Modeling