AFAttribute.Template Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This read-only property returns the AFAttributeTemplate
that was used to create this AFAttribute.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFAttributeTemplate Template { get; }
Public ReadOnly Property Template As AFAttributeTemplate Get Dim instance As AFAttribute Dim value As AFAttributeTemplate value = instance.Template
public: virtual property AFAttributeTemplate^ Template { AFAttributeTemplate^ get () sealed; }
abstract Template : AFAttributeTemplate with get override Template : AFAttributeTemplate with get
Property Value
Type: AFAttributeTemplateReturns the AFAttributeTemplate that was used to create this AFAttribute. If the attribute was not created from a template, then is returned.
Implements
IAFAttributeTemplate
Remarks
If the attribute cannot load the associated template or it was not created from a template, then
this property will return . Having a problem loading the associated template
would most likely happen if this attribute belongs to a time series element, such as an AFTransfer and the template
was renamed or deleted.