| Visual Basic (Declaration) | |
|---|---|
Public Function New( _ ByVal weekFlags As WeekFlags, _ ByVal overrideHoliday As HolidayOverride _ )  | |
| Visual Basic (Usage) |  Copy Code | 
|---|---|
Dim weekFlags As WeekFlags Dim overrideHoliday As HolidayOverride Dim instance As New DayOfWeekHolidayPolicy(weekFlags, overrideHoliday)  | |
| C# | |
|---|---|
public DayOfWeekHolidayPolicy( WeekFlags weekFlags, HolidayOverride overrideHoliday )  | |
Parameters
- weekFlags
 - A WeekFlags flag value that represents the weeks that will be treated as a holiday.
 - overrideHoliday
 - true to override the holiday (when the holiday lands on a weekday which is already set to a holiday) to the following day; false to do nothing.
 
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8