AFAttributeList.GetValue Method (AFTime)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This method gets the value for each attribute in the list based upon its data
reference configuration and the specified AFTime context.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFValues GetValue( AFTime time )
Public Function GetValue ( time As AFTime ) As AFValues Dim instance As AFAttributeList Dim time As AFTime Dim returnValue As AFValues returnValue = instance.GetValue(time)
public: AFValues^ GetValue( AFTime time )
member GetValue : time : AFTime -> AFValues
Parameters
- time
- Type: OSIsoft.AF.TimeAFTime
The time context to be used when getting the attribute's value. If the time context is not supported by the attribute's configuration, as indicated by the SupportedContexts property, then the context will be changed to no context.
Return Value
Type: AFValuesReturns the value of each AFAttribute in this list. The index or order of each value in the returned collection corresponds to the index or order of the attributes in this list.
Remarks
This routine can be a more efficient mechanism to retrieve values from many
attributes than calling one of the AFAttribute.GetValue Overload
methods individually. This method achieves efficiency by reducing the number of round-trips
to the associated server to read the data. The data will always be returned in the
DefaultUOM of the respective attribute. Each returned
AFValue will have its Attribute property set to
the AFAttribute associated with the value.