Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFElementTemplate.AllowElementToExtend Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFElementTemplate.AllowElementToExtend Property
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: Boolean
If , 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.

Caution note Caution
When changing this property to , then any attributes or ports that were added to existing elements created from this template will be deleted.

Version Information

AFSDK


See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in