AFElementTemplate.AllowElementToExtend Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This read/write property determines if additional attributes or ports can be added to
instances of AFBaseElement objects.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public bool AllowElementToExtend { get; set; }
Public Property AllowElementToExtend As Boolean Get Set Dim instance As AFElementTemplate Dim value As Boolean value = instance.AllowElementToExtend instance.AllowElementToExtend = value
public: property bool AllowElementToExtend { bool get (); void set (bool value); }
member AllowElementToExtend : bool with get, set
Property Value
Type: BooleanIf , then additional attributes or ports can be added to instances of AFBaseElement objects created from this template. If , then only attributes and ports defined by this template are allowed for AFBaseElement objects created from this template.
Remarks
All AFBaseElement objects created from this template have the same value for this property. This property determines if attributes or ports can be added to elements created from this template. The ability to add categories to an element is not controlled by this property setting and is always allowed.
| When changing this property to , then any attributes or ports that were added to existing elements created from this template will be deleted. |