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

AF SDK Reference

AFBaseElement.Ports Property

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

Version Information

AFSDK


See Also

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