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

AF SDK Reference

AFBaseElement.DefaultAttribute Property

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

Version Information

AFSDK


See Also

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