[]
Represents the forced holidays of a specific year which set by day of week rules.
public class ForceDayOfWeekHoliday : HolidayBase, INotifyPropertyChanged, IHoliday, ICloneable
Public Class ForceDayOfWeekHoliday
Inherits HolidayBase
Implements INotifyPropertyChanged, IHoliday, ICloneable
The day of week rules includes the months and the weeks and the days in the week defined the days are holidays of this ForceDayOfWeekHoliday. The Force means in a specific year specified by the Year property.
For example, you may defined a ForceDayOfWeekHoliday on the Wednesday of the first week of January, 2009 by specifying the DayOfWeek to Wednesday, WeekInMonth to FirstWeek, Month to January and Year to 2009.
Name | Description |
---|---|
ForceDayOfWeekHoliday() | Initializes a new instance of the ForceDayOfWeekHoliday class. |
ForceDayOfWeekHoliday(int, Months, Weeks, DayOfWeeks) | Initializes a new instance of the ForceDayOfWeekHoliday class with the specified day of week rules. |
ForceDayOfWeekHoliday(string, int, Months, Weeks, DayOfWeeks) | Initializes a new instance of the ForceDayOfWeekHoliday class with the specific day of week rules. |
Name | Description |
---|---|
DayOfWeek | Gets or sets the day of week on which the ForceDayOfWeekHoliday is defined. |
HolidayName | Gets or sets the name of the weekday holiday. |
IsYearly | Gets a value indicating whether the holiday implementation is yearly. |
Month | Gets or sets the month in which the ForceDayOfWeekHoliday is defined. |
WeekInMonth | Gets or sets the weekday order in which the ForceDayOfWeekHoliday is defined. |
Year | Gets or sets the year in which the ForceDayOfWeekHoliday is defined. |
Name | Description |
---|---|
Clone() | Creates a shallow copy of the ForceDayOfWeekHoliday object. |
IsDefined(DateTime) | Gets a value indicating whether the specified date is a ForceDayOfWeekHoliday. |
TypeOfDay(DateTime) | Returns the type of day for the specified date. |