AFDataReference.Template Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This property returns the attribute template that owns this object.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public virtual AFAttributeTemplate Template { get; set; }
Public Overridable Property Template As AFAttributeTemplate Get Set Dim instance As AFDataReference Dim value As AFAttributeTemplate value = instance.Template instance.Template = value
public: virtual property AFAttributeTemplate^ Template { AFAttributeTemplate^ get (); void set (AFAttributeTemplate^ value); }
abstract Template : AFAttributeTemplate with get, set override Template : AFAttributeTemplate with get, set
Property Value
Type: AFAttributeTemplateReturns the attribute template that owns this object.
Remarks
If this object is owned by an AFAttributeTemplate, then this property will be defined and the Attribute property will be . If this object is owned by an AFAttribute, then this property will be and the Attribute property will be defined.
This property is set by the AF SDK after the instance has been created. An implementation of a plugin can override the set method to perform any initialization that is necessary.