Click or drag to resize

ArchiveFile.ReadData(IEnumerable<Int32> , TimeTag, TimeTag, Boolean) Method

Reads ArchiveDataPoints from the ArchiveFile.

Namespace: GSF.Historian.Files
Assembly: GSF.Historian (in GSF.Historian.dll) Version: 2.4.239-beta
Syntax
public IEnumerable<IDataPoint> ReadData(
	IEnumerable<int> historianIDs,
	TimeTag startTime,
	TimeTag endTime,
	bool timeSorted = true
)
View Source

Parameters

historianIDs  IEnumerable<Int32>
Historian identifiers for which ArchiveDataPoints are to be retrieved.
startTime  TimeTag
Start TimeTag (in UTC) for the ArchiveDataPoints to be retrieved.
endTime  TimeTag
End TimeTag (in UTC) for the ArchiveDataPoints to be retrieved.
timeSorted  Boolean  (Optional)
Indicates whether the data retrieved from the archive should be time sorted.

Return Value

IEnumerable<IDataPoint>
IEnumerable<T> object containing zero or more ArchiveDataPoints.
Remarks
Data is always read from startTime to endTime. If startTime is greater than endTime, query data will be read from the archive in reverse time order.
See Also