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

AF SDK Reference

AFPort.Element Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFPort.Element Property
This property returns the AFBaseElement object which owns or references this port.

Namespace:  OSIsoft.AF.Modeling
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public AFBaseElement Element { get; }
Public ReadOnly Property Element As AFBaseElement
	Get

Dim instance As AFPort
Dim value As AFBaseElement

value = instance.Element
public:
property AFBaseElement^ Element {
	AFBaseElement^ get ();
}
member Element : AFBaseElement with get

Property Value

Type: AFBaseElement
Returns the AFBaseElement object which owns or references this port.

Remarks

If this port is accessed through the AFElementTemplate.Ports collection, then this property is and the ElementTemplate property will be defined. If this port is accessed through the AFBaseElement.Ports collection, then this property and the ElementTemplate property will both be defined. If this port is owned by an AFBaseElement (and not an AFElementTemplate), then this property will be defined and the ElementTemplate property will be .

Version Information

AFSDK


See Also

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