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

AF SDK Reference

AFDataReference Methods

  • Last UpdatedNov 18, 2025
  • 13 minute read
AFDataReference Methods

The AFDataReference type exposes the following members.

Methods

  NameDescription
Public method
CompareTo(Object)
Compares this instance with a specified Object.
(Inherited from AFObject.)
Public method
CompareTo(AFObject)
Compares this instance with a specified AFObject.
(Inherited from AFObject.)
Public methodCode example
CreateConfig
This method is invoked by the user to update the attribute configuration relative to a foreign system.
Public methodStatic member
CreateConfig(AFDatabase, EventHandlerAFProgressEventArgs)
Executes the create configuration function of the data references found within the attributes and its children of a database.
Public methodStatic member
CreateConfig(PISystem, EventHandlerAFProgressEventArgs)
Executes the create configuration function of the data references found within the attributes and its children of a PI System.
Public methodStatic member
CreateConfig(IList, Boolean, EventHandlerAFProgressEventArgs)
Executes the create configuration function of the data references found within the list of attributes and or elements.
Public methodStatic member
CreateConfig(AFAttribute, Boolean, EventHandlerAFProgressEventArgs)
Executes the create configuration function of the data reference found within the specified attribute, and optionally, any child attributes.
Public methodStatic member
CreateConfig(AFBaseElement, Boolean, EventHandlerAFProgressEventArgs)
Executes the create configuration function of the data references found within the attributes of the element, and optionally, its children.
Public methodStatic member
CreateConfigEventFrames(AFDatabase, Object, Object, EventHandlerAFProgressEventArgs)
Executes the create configuration function of the data references found within the attributes and its children of a database.
Public methodStatic member
CreateConfigEventFrames(PISystem, Object, Object, EventHandlerAFProgressEventArgs)
Executes the create configuration function of the data references found within the attributes and its children of a PI System.
Public method
DefaultSaveConfigChanges
Called by the protected SaveConfigChanges method to perform the default actions to save the configuration changes.
Public method
Equals(Object)
Determines whether the specified Object is equal to the current object.
(Inherited from AFObject.)
Public method
Equals(AFObject)
Indicates whether the current object is equal to another object of the same type.
(Inherited from AFObject.)
Public methodStatic member
FilterCreateConfigSupportedAttributes
Filter out attributes that do not support CreateConfig.
Public method
FilteredSummaries
Returns several summaries for a single attribute over a time range for each interval within the range.
Public method
FilteredSummariesAsync
This method, when supplied a filter expression that evaluates to true or false, evaluates it over the passed time range. For the time ranges where the expression evaluates to true, the method calculates the requested summaries on the source attribute.
Public method
GetAnnotation
Gets the annotation associated with a single historical event.
Public method
GetAttribute
Retrieve the attribute for the specified name relative to the attribute in this Data Reference.
Public method
GetAttributeTemplate
Retrieve the attribute template for the specified name relative to the attribute template in this Data Reference.
Public method
GetHashCode
Gets the hash code for this instance of the object which is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from AFObject.)
Public method
GetInputs
This method provides the data reference a mechanism to specify the attributes it will use during its calculation.
Public method
GetPath
Returns the full path to the object, using just the names.
(Inherited from AFObject.)
Public method
GetPath(AFObject)
Returns the path to the object relative from another object.
(Inherited from AFObject.)
Public method
GetPath(AFEncodeType, AFObject)
Returns the path to the object relative from another object, using the name and/or id as specified by encodeType.
(Inherited from AFObject.)
Public methodStatic member
GetPIPointDataReference
This method will return the AFPlugIn for the PIPoint data reference.
Public method
GetToolTip
Returns a tool tip suitable for displaying the current configuration.
Public method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic member
GetValue(AFAttributeList, Object, Object)
This method gets the value for multiple attributes based upon the data reference configuration within the specified context.
Public method
GetValue(Object, Object, AFAttributeList, AFValues)
This method gets the value based upon the data reference configuration within the specified context.
Public method
GetValues
This method gets a collection of AFValue objects for an attribute based upon the data reference configuration within the specified AFTimeRange context.
Public method
InterpolatedValue
Returns a single AFValue whose value is interpolated at the passed time.
Public method
InterpolatedValueAsync
Returns a single AFValue whose value is interpolated at the passed time.
Public method
InterpolatedValuesAtTimes
Retrieves interpolated values at the specified times.
Public method
InterpolatedValuesAtTimesAsync
Retrieves interpolated values at the specified times.
Public method
InterpolatedValuesByCount
Retrieves interpolated values over the specified time range evenly spaced using the numberOfValues.
Public method
InterpolatedValuesByCountAsync
This method returns the specified number of interpolated values evenly spaced throughout the specified timeRange.
Public methodStatic member
IsRepairSupported
Checks whether attributes support Repair function.
Public methodStatic member
IsReplacePIServerSupported(AFAttribute)
Checks whether attributes and attribute templates support ReplacePIServer method.
Public methodStatic member
IsReplacePIServerSupported(AFAttributeTemplate)
Checks whether attributes supports ReplacePIServer.
Public method
Persist
This method returns the persistence string for the object.
(Overrides AFObjectPersist.)
Public method
PlotValues
Returns a single AFValue whose value is interpolated at the passed time.
Public method
PlotValuesAsync
Retrieves values over the specified time range suitable for plotting over the number of intervals (typically represents pixels).
Public method
RecordedValue
Returns a single recorded AFValue based on the passed time and mode.
Public method
RecordedValueAsync
Returns a single recorded AFValue based on the passed time and mode.
Public method
RecordedValues
Returns a list of compressed values for the requested time range from the source provider.
Public method
RecordedValuesAsync
Returns a list of values for the requested time range from the source provider.
Public method
RecordedValuesAtTimes
Retrieves recorded values at the specified times.
Public method
RecordedValuesAtTimesAsync
Retrieves recorded values at the specified times.
Public method
RecordedValuesByCount
This method returns a specified number of compressed values beginning at the requested start time in the direction specified.
Public method
RecordedValuesByCountAsync
This method returns a specified number of compressed values beginning at the requested start time in the direction specified.
Public methodStatic member
Repair(AFDatabase, EventHandlerAFProgressEventArgs)
Executes the repair function on the PI Point or PI Point Array data references found within the attributes and its children of a database. When PI point ids or point names in the ConfigString no longer match those on the PI Data Archive, a repair fixes the mismatch.
Public methodStatic member
Repair(PISystem, EventHandlerAFProgressEventArgs)
Executes the repair function on the PI Point or PI Point Array data references found within the attributes and its children of a PI System. When point ids or point names in the ConfigString no longer match those on the PI Data Archive, a repair fixes the mismatch.
Public methodStatic member
RepairEventFrames(AFDatabase, Object, Object, EventHandlerAFProgressEventArgs)
Executes the repair function on the PI Point or PI Point Array data references found within the attributes and its children of event frames of a database. When point ids or point names in the ConfigString no longer match those on the PI Data Archive, a repair fixes the mismatch.
Public methodStatic member
RepairEventFrames(PISystem, Object, Object, EventHandlerAFProgressEventArgs)
Executes the repair function on the PI Point or PI Point Array data references found within the attributes and its children of event frames of a PI System. When point ids or point names in the ConfigString no longer match those on the PI Data Archive, a repair fixes the mismatch.
Public methodStatic member
ReplacePIServer(AFDatabase, String, String, EventHandlerAFProgressEventArgs)
Replaces the PI Data Archive server name with another server on the PI Point and PI Point Array data references found within the attributes and attribute templates and its children of a database.
Public methodStatic member
ReplacePIServer(PISystem, String, String, EventHandlerAFProgressEventArgs)
Replaces the PI Data Archive server name with another server name on the PI Point and PI Point Array data references found within the attributes and attribute templates and its children of a PI System.
Public methodStatic member
ReplacePIServerEventFrames(AFDatabase, String, String, Object, Object, EventHandlerAFProgressEventArgs)
Replaces the PI Data Archive server with another server on the PI Point and PI Point Array data references found within the attributes and attribute templates and its children of event frames of a database.
Public methodStatic member
ReplacePIServerEventFrames(PISystem, String, String, Object, Object, EventHandlerAFProgressEventArgs)
Replaces the PI Data Archive server with another server on the PI Point and PI Point Array data references found within the attributes and attribute templates and its children of event frames of a PI System.
Public method
ReplaceValues(AFTimeRange, AFValues)
This method removes existing data within the specified AFTimeRange and inserts the specified values on the target system using the configured data reference.
Public method
ReplaceValues(AFTimeRange, AFValues, AFBufferOption)
This method removes existing data within the specified AFTimeRange and inserts the specified values on the target system using the configured data reference.
Public method
ReplaceValuesAsync(AFTimeRange, AFValues, CancellationToken)
This method removes existing data within the specified AFTimeRange and inserts the specified values on the target system using the configured data reference.
Public method
ReplaceValuesAsync(AFTimeRange, AFValues, AFBufferOption, CancellationToken)
This method removes existing data within the specified AFTimeRange and inserts the specified values on the target system using the configured data reference.
Public method
SetAnnotation
Associates the annotation with the passed in value.
Public method
SetSaveConfigChangesHandler
Set the handler used for saving ConfigString changes.
Public method
SetValue
This method sets the value based upon the data reference configuration within the specified context.
Public method
Summaries
Returns several summaries for a single attribute over a time range for each interval within the range.
Public method
SummariesAsync
Returns several summaries for a single attribute over a time range for each interval within the range.
Public method
Summary
Returns several summaries for a single attribute over a single time range.
Public method
SummaryAsync
Returns several summaries for a single attribute over a single time range.
Public method
ToString
Returns a String that represents the current object.
(Overrides AFObjectToString.)
Public method
UpdateValue(AFValue, AFUpdateOption)
This method writes, replaces, or removes a value on the target system using the configured data reference.
Public method
UpdateValue(AFValue, AFUpdateOption, AFBufferOption)
This method writes, replaces, or removes a value on the target system using the configured data reference.
Public method
UpdateValues(AFValues, AFUpdateOption)
This method writes or replaces one or more values on the target system using the configured data reference.
Public methodCode example
UpdateValues(AFValues, AFUpdateOption, AFBufferOption)
This method writes or replaces one or more values on the target system using the configured data reference.
Public method
UpdateValuesAsync(AFValues, AFUpdateOption, CancellationToken)
This method writes or replaces one or more values on the target system using the configured data reference.
Public method
UpdateValuesAsync(AFValues, AFUpdateOption, AFBufferOption, CancellationToken)
This method writes or replaces one or more values on the target system using the configured data reference.
Public methodStatic member
UsesInternalAFValue
Determines if the specified AFPlugIn uses the SetInternalAFValue method for storing values.

See Also

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