Click or drag to resize

DataSetsGetAverage Method

Returns the AverageDataSet that was generated to fulfil the specified AverageDataSpec 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 AverageDataSet GetAverage(
	AverageDataSpec dataSpec
)

Parameters

dataSpec  AverageDataSpec
An AverageDataSpec from the request.

Return Value

AverageDataSet
The non-null AverageDataSet 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 an AverageDataSpec and then casting the result.

See Also