Click or drag to resize
OSIsoft, LLC

AFDataRecordedValuesAtTimes Method

Retrieves recorded values at the specified times.

Namespace:  OSIsoft.AF.Data
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 2.10.6.195
Syntax
public AFValues RecordedValuesAtTimes(
	IList<AFTime> times,
	AFRetrievalMode mode,
	UOM desiredUOM
)

Parameters

times
Type: System.Collections.GenericIListAFTime
List of time stamps at which to retrieve recorded values.
mode
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.
desiredUOM
Type: OSIsoft.AF.UnitsOfMeasureUOM
The desired unit of measure for the returned value. If , then the value is returned in the unit of measure specified by the associated attribute's DefaultUOM property.

Return Value

Type: AFValues
Returns an AFValues collection with the recorded values at the specified times.
Exceptions
ExceptionCondition
ArgumentNullException The times is .
ArgumentException The times list must be monotonic.
Remarks

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

Security note Security Note
You must have ReadData security rights to read a data value.

Version Information

AFSDK

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