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)


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


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