Click or drag to resize

DatedBreakdownWeekly Method

Returns a non-null WeeklyBreakdown object that specifies weekly degree days covering the specified period in time, with each "week" starting on the specified day of the week.

Namespace: DegreeDays.Api.Data
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public static WeeklyBreakdown Weekly(
	Period period,
	DayOfWeek firstDayOfWeek
)

Parameters

period  Period
The period in time that the weekly breakdown should cover. Cannot be null.
firstDayOfWeek  DayOfWeek
Indicates which day should be taken as the first of each week.

Return Value

WeeklyBreakdown
The newly-constructed WeeklyBreakdown object.
Exceptions
ExceptionCondition
ArgumentNullExceptionperiod is null.
ArgumentOutOfRangeExceptionfirstDayOfWeek is not a valid DayOfWeek value.
Remarks

To avoid the potential for confusion, you must explicitly specify the day of the week that you want each "week" to start on. For example, if a "week" should run from Monday to Sunday (inclusive), specify the firstDayOfWeek parameter as DayOfWeek.Monday.

See Also