AFAttribute.DataReferencePlugIn Property
- Last UpdatedNov 18, 2025
- 3 minute read
- PI System
- AF SDK 2024 R2
- Developer
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 AFAttribute 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 from 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 if the attribute was not created from a template. |
If this attribute was created from an AFAttributeTemplate, then the value of this property is defined by the template's DataReferencePlugIn unless it is modified to be different from the template value. If the value is defined by a template, then changing the template's DataReferencePlugIn property will also change the value of this property of the AFAttribute.
| If the value of this property is defined by the template, then setting the value of this property to be the same as the template's value will reset it back to be defined by the template's value. |