Share via


UmlExtensions.GetRelatedElements<T> Method (IElement)

 

Gets elements related to this element by relationships of the specified type.

Namespace:   Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml
Assembly:  Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)

Syntax

public static IEnumerable<IElement> GetRelatedElements<T>(
    this IElement element
)
where T : IRelationship
public:
generic<typename T>
where T : IRelationship
[ExtensionAttribute]
static IEnumerable<IElement^>^ GetRelatedElements(
    IElement^ element
)
static member GetRelatedElements<'T when 'T : IRelationship> : 
        element:IElement -> IEnumerable<IElement>
<ExtensionAttribute>
Public Shared Function GetRelatedElements(Of T As IRelationship) (
    element As IElement
) As IEnumerable(Of IElement)

Parameters

Return Value

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

Type Parameters

  • T
    IRelationship or one of its subtypes.

See Also

UmlExtensions Class
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml Namespace

Return to top