AFElementTemplate.GetAllPorts Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Gets the list of ports for this template and all base templates.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFNamedCollectionList<AFPort> GetAllPorts()
Public Function GetAllPorts As AFNamedCollectionList(Of AFPort) Dim instance As AFElementTemplate Dim returnValue As AFNamedCollectionList(Of AFPort) returnValue = instance.GetAllPorts()
public: AFNamedCollectionList<AFPort^>^ GetAllPorts()
member GetAllPorts : unit -> AFNamedCollectionList<AFPort>
Return Value
Type: AFNamedCollectionListAFPortReturns the list of ports for this template and all base templates.
Remarks
This is the list of ports that would be defined for an AFBaseElement
created from the template.