Scheduler for WinForms | ComponentOne
C1.Win.C1Schedule.4.5.2 Assembly / C1.C1Schedule Namespace / RecurrencePattern Class / DayOfWeekMask Property

In This Topic
    DayOfWeekMask Property (RecurrencePattern)
    In This Topic
    Gets or sets the WeekDaysEnum value representing the mask for week days on which the recurring appointment occurs. Monthly and yearly patterns are only valid for a single day. Weekly patterns are only valid as the Or of the DayOfWeekMask. The default value is 0.
    Syntax
    'Declaration
     
    Public Property DayOfWeekMask As WeekDaysEnum
    public WeekDaysEnum DayOfWeekMask {get; set;}
    Remarks
    When the RecurrenceType property is set to RecurrenceTypeEnum.Daily, the DayOfWeekMask property can only be set to WeekDaysEnum.EveryDay; setting the property to any other value will result in an exception. When the RecurrenceType property is set to RecurrenceTypeEnum.Workdays, the DayOfWeekMask property can only be set to WeekDaysEnum.WorkDays; setting the property to any other value will result in an exception. When the RecurrenceType property is set to RecurrenceTypeEnum.Weekly, the DayOfWeekMask property cannot be set to WeekDaysEnum.None; doing so will result in an exception being thrown. When the RecurrenceType property is set to RecurrenceTypeEnum.Monthly or RecurrenceTypeEnum.Yearly the DayOfWeekMask property is not applicable.
    See Also