UmlExtensions.GetRelatedLinks<T> Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Get the relationships of type T in which this element participates. T can be any relationship type, such as IAssociation or IGeneralization.

Namespace:  Microsoft.VisualStudio.Uml.Extensions
Assembly:  Microsoft.VisualStudio.Uml.Extensions (in Microsoft.VisualStudio.Uml.Extensions.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetRelatedLinks(Of T As IRelationship) ( _
    element As IElement _
) As IEnumerable(Of T)
'Usage
Dim element As IElement
Dim returnValue As IEnumerable(Of T)

returnValue = element.GetRelatedLinks()
public static IEnumerable<T> GetRelatedLinks<T>(
    this IElement element
)
where T : IRelationship
[ExtensionAttribute]
public:
generic<typename T>
where T : IRelationship
static IEnumerable<T>^ GetRelatedLinks(
    IElement^ element
)
static member GetRelatedLinks : 
        element:IElement -> IEnumerable<'T>  when 'T : IRelationship
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<T>
Collection of directly related links of type T

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IElement. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

UmlExtensions Class

UmlExtensions Members

Microsoft.VisualStudio.Uml.Extensions Namespace