Click or drag to resize

DataSetsGetTimeSeries Method

Returns the TimeSeriesDataSet that was generated to fulfil the specified TimeSeriesDataSpec from the request, or throws a SourceDataException if no such data set could be generated.

Namespace: DegreeDays.Api.Data
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public TimeSeriesDataSet GetTimeSeries(
	TimeSeriesDataSpec dataSpec
)

Parameters

dataSpec  TimeSeriesDataSpec
A TimeSeriesDataSpec from the request.

Return Value

TimeSeriesDataSet
The non-null TimeSeriesDataSet that was generated to fulfil dataSpec.
Exceptions
ExceptionCondition
SourceDataExceptionThe API's processing of dataSpec failed.
ArgumentNullExceptiondataSpec is null.
ArgumentExceptiondataSpec is not a DataSpec from the original request.
InvalidOperationExceptionThis DataSets object was not created with access to the DataSpecs object from the request (this won't be an issue if you are using this framework end to end).
Remarks

This is a convenience alternative to calling GetBase(DataSpec) with a TimeSeriesDataSpec and then casting the result.

Version History
VersionDescription
1.2 This was added in version 1.2.
See Also