[]
Represents the forced workdays of a specific year, which set by day of week rules.
public class ForceDayOfWeekWorkday : HolidayBase, INotifyPropertyChanged, IHoliday, ICloneable
Public Class ForceDayOfWeekWorkday
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 ForceDayOfWeekWorkday. The Force means in a specific year specified by the Year property.
For example, you may defined a ForceDayOfWeekWorkday 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 int.
Name | Description |
---|---|
ForceDayOfWeekWorkday() | Initializes a new instance of the ForceDayOfWeekWorkday class with the specified day of week rules. |
ForceDayOfWeekWorkday(int, Months, Weeks, DayOfWeeks) | Initializes a new instance of the ForceDayOfWeekWorkday class with the specified day of week rules. |
ForceDayOfWeekWorkday(string, int, Months, Weeks, DayOfWeeks) | Initializes a new instance of the ForceDayOfWeekWorkday class with the specified day of week rules. |
Name | Description |
---|---|
DayOfWeek | Gets or sets the day of week on which the ForceDayOfWeekWorkday is defined. |
HolidayName | Gets or sets the name of the weekday workday. |
IsYearly | Determines whether the weekday workday implementation is yearly. |
Month | Gets or sets the month in which the ForceDayOfWeekWorkday is defined. |
WeekInMonth | Gets or sets the weekday order which the ForceDayOfWeekWorkday is defined. |
Year | Gets or sets the year in which the ForceDayOfWeekWorkday is defined. |
Name | Description |
---|---|
Clone() | Creates a shallow copy of the ForceDayOfWeekWorkday object. |
IsDefined(DateTime) | Gets a value indicating whether the specified date is a ForceDayOfWeekWorkday. |
TypeOfDay(DateTime) | Returns the type of day for the specified date. |