Share via


ConnectableElementExtensions.GetConnectedElements Method

The elements connected to this element using Connectors. For example, if this element is a Part in a Component, this method returns the Parts and Ports that are connected to it.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetConnectedElements ( _
    connectableElement As IConnectableElement _
) As IEnumerable(Of IConnectableElement)
public static IEnumerable<IConnectableElement> GetConnectedElements(
    this IConnectableElement connectableElement
)
[ExtensionAttribute]
public:
static IEnumerable<IConnectableElement^>^ GetConnectedElements(
    IConnectableElement^ connectableElement
)
static member GetConnectedElements : 
        connectableElement:IConnectableElement -> IEnumerable<IConnectableElement> 
public static function GetConnectedElements(
    connectableElement : IConnectableElement
) : IEnumerable<IConnectableElement>

Parameters

Return Value

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

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IConnectableElement. 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

ConnectableElementExtensions Class

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml Namespace