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

AF SDK Reference

AFPort.ElementTemplate Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFPort.ElementTemplate Property
This read-only property returns the AFElementTemplate which owns this port.

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

Syntax

public AFElementTemplate ElementTemplate { get; }
Public ReadOnly Property ElementTemplate As AFElementTemplate
	Get

Dim instance As AFPort
Dim value As AFElementTemplate

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

Property Value

Type: AFElementTemplate
Returns the AFElementTemplate which owns this object.

Remarks

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

Version Information

AFSDK


See Also

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