Click or drag to resize
OSIsoft, LLC

PIPointRecordedValuesAtTimes Method

Returns recorded values based on the specified times and mode.

Namespace:  OSIsoft.AF.PI
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version:
public AFValues RecordedValuesAtTimes(
	IList<AFTime> times,
	AFRetrievalMode mode


Type: System.Collections.GenericIListAFTime
List of time stamps at which to retrieve recorded values.
Type: OSIsoft.AF.DataAFRetrievalMode
The mode is used to determine the value to return when a value does not exist at the exact time specified. The value is taken from the AFRetrievalMode enumeration.

Return Value

Type: AFValues
Returns an AFValues collection with the recorded values at the specified times.
PIExceptionError returned by the PI Data Archive.
ArgumentNullException The times is .
ArgumentException The times list must be monotonic.

Note Notes to Callers
This method, property, or class is only available in the .NET 4 version of the SDK.

This method requires the PI Data Archive 2016 or later to take full advantage of performance. Otherwise, iterative RecordedValue at each timestamp (of the input times) will be performed in parallel.

Version Information


Supported in: 2.10.5, 2.10, 2.9.5, 2.9, 2.8.5, 2.8
See Also
Enabling Operational Intelligence