AFElementTemplate.DefaultAttribute Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
The AFAttributeTemplate associated with the default
AFAttribute for the AFBaseElement created from
this template.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFAttributeTemplate DefaultAttribute { get; set; }
Public Property DefaultAttribute As AFAttributeTemplate Get Set Dim instance As AFElementTemplate Dim value As AFAttributeTemplate value = instance.DefaultAttribute instance.DefaultAttribute = value
public: property AFAttributeTemplate^ DefaultAttribute { AFAttributeTemplate^ get (); void set (AFAttributeTemplate^ value); }
member DefaultAttribute : AFAttributeTemplate with get, set
Property Value
Type: AFAttributeTemplateReturns the AFAttributeTemplate associated with the default AFAttribute for the AFBaseElement created from this template.
Remarks
Use this property when attempting to get the value for the element when a
specific attribute is not specified. The attribute must be at the top-level
of the attribute hierarchy of the element. It cannot be nested under another
attribute.