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

AF SDK Reference

AFElementTemplate.DefaultAttribute Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFElementTemplate.DefaultAttribute Property
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: AFAttributeTemplate
Returns 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.

Version Information

AFSDK


See Also

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