AFBaseElement.DefaultAttribute Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
The default AFAttribute for the AFBaseElement.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFAttribute DefaultAttribute { get; set; }
Public Property DefaultAttribute As AFAttribute Get Set Dim instance As AFBaseElement Dim value As AFAttribute value = instance.DefaultAttribute instance.DefaultAttribute = value
public: property AFAttribute^ DefaultAttribute { AFAttribute^ get (); void set (AFAttribute^ value); }
member DefaultAttribute : AFAttribute with get, set
Property Value
Type: AFAttributeReturns the default AFAttribute for the AFBaseElement.
Remarks
If this element was created from an AFElementTemplate, then the value of this property is defined by the template's DefaultAttribute.
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.