Click or drag to resize

PeriodLatestValues Method

Returns a non-null LatestValuesPeriod object that automatically resolves to a date range including the latest available data and the specified number of degree-day values.

Namespace: DegreeDays.Api.Data
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public static LatestValuesPeriod LatestValues(
	int numberOfValues
)

Parameters

numberOfValues  Int32
A number, greater than zero, that specifies how many degree-day values the period should cover (see these remarks on how the values in question can be daily, weekly, monthly, or yearly). This is effectively an upper bound: if there isn't enough good data to cover the numberOfValues specified, the API will assemble and return what it can.

Return Value

LatestValuesPeriod
The newly-created LatestValuesPeriod object.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionnumberOfValues is less than or equal to zero.
See Also