Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFElementTemplate.Ports Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFElementTemplate.Ports Property
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: AFPorts
Collection 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.

Version Information

AFSDK


See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in