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

AF SDK Reference

AFAttributeTemplate.DataReferencePlugIn Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFAttributeTemplate.DataReferencePlugIn Property
The data reference plugin property is used to specify which data reference will be used by the AFAttribute to retrieve and set values in a data source.

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

Syntax

public AFPlugIn DataReferencePlugIn { get; set; }
Public Property DataReferencePlugIn As AFPlugIn
	Get
	Set

Dim instance As AFAttributeTemplate
Dim value As AFPlugIn

value = instance.DataReferencePlugIn

instance.DataReferencePlugIn = value
public:
virtual property AFPlugIn^ DataReferencePlugIn {
	AFPlugIn^ get () sealed;
	void set (AFPlugIn^ value) sealed;
}
abstract DataReferencePlugIn : AFPlugIn with get, set
override DataReferencePlugIn : AFPlugIn with get, set

Property Value

Type: AFPlugIn
The data reference plugin used to create the data reference which is used to get and set values in a data source.

Implements

IAFAttributeDataReferencePlugIn

Remarks

The value of a data source can be a constant value, a formula, a PI Point, a value from a relational database, etc. The value depends upon the configured data reference.

The list of available data references available on the system is provided by the PISystem.DataReferencePlugIns collection. An instance of a data reference is created by an object which is derived the AFDataReference base class that has been registered on the PI AF Server using the RegPlugIn utility. An instance of the data reference is used to get and set values in the referenced data store.

Note Note
Setting this property will automatically set the IsConfigurationItem property to . It will also automatically set the IsIndexed property to if the InstanceType is not AFEventFrame, AFTransfer, or AFCase.

Version Information

AFSDK


See Also

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