Scheduler for WinForms | ComponentOne
C1.Win.C1Schedule.4.8 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 RecurrencePattern.DayOfWeekMask. The default value is 0.
    Syntax
    'Declaration
     
    Public Property DayOfWeekMask As WeekDaysEnum
    public WeekDaysEnum DayOfWeekMask {get; set;}
    Remarks
    When the RecurrencePattern.RecurrenceType property is set to RecurrenceTypeEnum.Daily, the RecurrencePattern.DayOfWeekMask property can only be set to WeekDaysEnum.EveryDay; setting the property to any other value will result in an exception. When the RecurrencePattern.RecurrenceType property is set to RecurrenceTypeEnum.Workdays, the RecurrencePattern.DayOfWeekMask property can only be set to WeekDaysEnum.WorkDays; setting the property to any other value will result in an exception. When the RecurrencePattern.RecurrenceType property is set to RecurrenceTypeEnum.Weekly, the RecurrencePattern.DayOfWeekMask property cannot be set to WeekDaysEnum.None; doing so will result in an exception being thrown. When the RecurrencePattern.RecurrenceType property is set to RecurrenceTypeEnum.Monthly or RecurrenceTypeEnum.Yearly the RecurrencePattern.DayOfWeekMask property is not applicable.
    See Also