AFModel.GetConnectedElements Method (AFElement)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This method returns a collection of AFElement objects which are
connected to the specified element (or child element) within the model.
Namespace: OSIsoft.AF.Modeling
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFNamedCollectionList<AFElement> GetConnectedElements( AFElement element )
Public Function GetConnectedElements ( element As AFElement ) As AFNamedCollectionList(Of AFElement) Dim instance As AFModel Dim element As AFElement Dim returnValue As AFNamedCollectionList(Of AFElement) returnValue = instance.GetConnectedElements(element)
public: AFNamedCollectionList<AFElement^>^ GetConnectedElements( AFElement^ element )
member GetConnectedElements : element : AFElement -> AFNamedCollectionList<AFElement>
Parameters
- element
- Type: OSIsoft.AF.AssetAFElement
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: AFNamedCollectionListAFElementReturns a collection contains all the elements that are connected to the specified element or one of its child elements within the model.
Remarks
The returned collection contains all the elements that are connected to the specified
element or one of its child elements within the model.