Click or drag to resize

WeeklyBreakdown Constructor

Constructs a 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.Impl
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public WeeklyBreakdown(
	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.
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