Click or drag to resize
OSIsoft, LLC

AFAttributeListGetValue Method

This method gets the value for each attribute in the list.
This method gets the value for each attribute in the list based upon its data reference configuration.

Namespace:  OSIsoft.AF.Asset
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version:
public AFValues GetValue()

Return Value

Type: AFValues
Returns 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.

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.

This overload of GetValue contains no time or time range context. In this case, the time context is determined from the owning object - for example, the time range of the event frame or transfer which holds the attribute. Otherwise, the implementation of the Data Reference determines the meaning of no context. For simply configured PI Point Data References, this means the snapshot value of the PI Point on the PI Data Archive.

Version Information


Supported in: 2.10.5, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6, 2.5, 2.4
See Also
Enabling Operational Intelligence