UmlExtensions.GetRelatedLinks<T> Method (IElement)
Gets relationships of a specified type from or to this element.
Namespace: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)
Syntax
public static IEnumerable<T> GetRelatedLinks<T>(
this IElement element
)
where T : IRelationship
public:
generic<typename T>
where T : IRelationship
[ExtensionAttribute]
static IEnumerable<T>^ GetRelatedLinks(
IElement^ element
)
static member GetRelatedLinks<'T when 'T : IRelationship> :
element:IElement -> IEnumerable<'T>
<ExtensionAttribute>
Public Shared Function GetRelatedLinks(Of T As IRelationship) (
element As IElement
) As IEnumerable(Of T)
Parameters
- element
Type: Microsoft.VisualStudio.Uml.Classes.IElement
Return Value
Type: System.Collections.Generic.IEnumerable<T>
Type Parameters
- T
IRelationship or one of its subtypes.
See Also
UmlExtensions Class
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml Namespace
Return to top