Sdílet prostřednictvím


UmlExtensions.GetRelatedElements<T> – metoda

Získá prvky týkající se tento prvek vztahy zadaného typu.

Obor názvů:  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml
Sestavení:  Microsoft.VisualStudio.ArchitectureTools.Extensibility (v Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)

Syntaxe

'Deklarace
<ExtensionAttribute> _
Public Shared Function GetRelatedElements(Of T As IRelationship) ( _
    element As IElement _
) As IEnumerable(Of IElement)
public static IEnumerable<IElement> GetRelatedElements<T>(
    this IElement element
)
where T : IRelationship
[ExtensionAttribute]
public:
generic<typename T>
where T : IRelationship
static IEnumerable<IElement^>^ GetRelatedElements(
    IElement^ element
)
static member GetRelatedElements : 
        element:IElement -> IEnumerable<IElement>  when 'T : IRelationship
Jazyk JScript nepodporuje obecné typy a metody.

Parametry typu

  • T
    IRelationship nebo jeden z jeho podtypů.

Parametry

Vrácená hodnota

Typ: System.Collections.Generic.IEnumerable<IElement>

Poznámka k použití

V jazycích Visual Basic a C# lze tuto metodu volat jako metodu instance libovolného objektu typu IElement. Pokud k volání této metody použijete syntaxi metody instance, vynechejte první parametr. Další informace naleznete v tématech Extension Methods (Visual Basic) a Extension Methods (C# Programming Guide).

Zabezpečení rozhraní .NET Framework

Viz také

Odkaz

UmlExtensions Třída

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml – obor názvů