AFCase.GetConnectedElements Method (AFBaseElement)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This method returns a collection of AFBaseElement objects which are
connected to the specified element (or child element) within the case.
Namespace: OSIsoft.AF.Analysis
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFNamedCollectionList<AFBaseElement> GetConnectedElements( AFBaseElement element )
Public Function GetConnectedElements ( element As AFBaseElement ) As AFNamedCollectionList(Of AFBaseElement) Dim instance As AFCase Dim element As AFBaseElement Dim returnValue As AFNamedCollectionList(Of AFBaseElement) returnValue = instance.GetConnectedElements(element)
public: AFNamedCollectionList<AFBaseElement^>^ GetConnectedElements( AFBaseElement^ element )
member GetConnectedElements : element : AFBaseElement -> AFNamedCollectionList<AFBaseElement>
Parameters
- element
- Type: OSIsoft.AF.AssetAFBaseElement
The element associated with the connected elements being returned. It (or one of its child elements) could be either a source or destination of the connection. Only child elements with a direct ownership through the Parent property will be checked.
Return Value
Type: AFNamedCollectionListAFBaseElementReturns the collection of connected elements.
Remarks
The returned collection contains all the elements that are connected to the specified
element or one of its child elements within the case.
The specified element must be active for the case.