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

AF SDK Reference

AFAttribute.Template Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFAttribute.Template Property
This read-only property returns the AFAttributeTemplate that was used to create this AFAttribute.

Namespace:  OSIsoft.AF.Asset
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public AFAttributeTemplate Template { get; }
Public ReadOnly Property Template As AFAttributeTemplate
	Get

Dim instance As AFAttribute
Dim value As AFAttributeTemplate

value = instance.Template
public:
virtual property AFAttributeTemplate^ Template {
	AFAttributeTemplate^ get () sealed;
}
abstract Template : AFAttributeTemplate with get
override Template : AFAttributeTemplate with get

Property Value

Type: AFAttributeTemplate
Returns the AFAttributeTemplate that was used to create this AFAttribute. If the attribute was not created from a template, then is returned.

Implements

IAFAttributeTemplate

Remarks

If the attribute cannot load the associated template or it was not created from a template, then this property will return . Having a problem loading the associated template would most likely happen if this attribute belongs to a time series element, such as an AFTransfer and the template was renamed or deleted.

Version Information

AFSDK


See Also

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