AFAttributeTemplate.DataReferencePlugIn Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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: AFPlugInThe 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.
| 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. |