AFBaseElement.Ports Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This is a collection of AFPort objects representing the possible connection ports
for this element.
Ports are used in a AFModel to define an AFConnection
between AFBaseElement object.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public virtual AFPorts Ports { get; }
Public Overridable ReadOnly Property Ports As AFPorts Get Dim instance As AFBaseElement Dim value As AFPorts value = instance.Ports
public: virtual property AFPorts^ Ports { AFPorts^ get (); }
abstract Ports : AFPorts with get override Ports : AFPorts with get
Property Value
Type: AFPortsCollection of AFPort objects representing the possible connection ports for this element.
Remarks
The returned collection contains all the ports defined by the
AFElementTemplate.Ports
collection plus any ports defined by its base templates that are not already in the collection.