Click or drag to resize

DataSetsGetDated Method

Returns the DatedDataSet that was generated to fulfil the specified DatedDataSpec 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 DatedDataSet GetDated(
	DatedDataSpec dataSpec
)

Parameters

dataSpec  DatedDataSpec
A DatedDataSet from the request.

Return Value

DatedDataSet
The non-null DatedDataSet 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 DatedDataSpec and then casting the result.

See Also