AFElementTemplate.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 elements created from this template.
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 AFPorts Ports { get; }
Public ReadOnly Property Ports As AFPorts Get Dim instance As AFElementTemplate Dim value As AFPorts value = instance.Ports
public: property AFPorts^ Ports { AFPorts^ get (); }
member Ports : AFPorts with get
Property Value
Type: AFPortsCollection of AFPort objects representing the possible connection ports for elements created from this template.
Remarks
The template defines the possible connection ports for elements created from this template. The
template only returns the ports the it actually defines. An element created from this template will
get the ports defined by this template plus any ports defined by the template's base templates.
If this template defines a port with the same name as one defined by a base template, then the
current port definition overrides the port defined by the base template.