AFBaseElement.Attributes Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This is a collection of attributes that are owned by this element.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFAttributes Attributes { get; }
Public ReadOnly Property Attributes As AFAttributes Get Dim instance As AFBaseElement Dim value As AFAttributes value = instance.Attributes
public: property AFAttributes^ Attributes { AFAttributes^ get (); }
member Attributes : AFAttributes with get
Property Value
Type: AFAttributesCollection of attributes that are owned by this element.
Remarks
If this element was created from an AFElementTemplate, then this collection is initially created from the AttributeTemplates collection of that element template. Changes to the collection of attribute templates (i.e. rename, add, remove) automatically cause similar changes to the AFAttribute objects in this collection.
If the element was not created from a template, or, if the AllowElementToExtend property of the template used to create this element is , then additional attributes which are not defined by an attribute template can be added to this instance.