Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
485
Need More Weekly Recurrence Pattern Options.
posted

Hello, I'm looking for the property that will allow me to choose the multiple days of the week that I want in the repeating pattern. Say I want Tuesday and Thursday, or Monday, Wednesday, Friday, How would I accomplish that. The DaysOfWeek Enum is using a binary number that would allow an integer representation, but assigning the pattern only accepts the fixed Enum.

Any help would be appreciated

Parents
  • 69832
    Verified Answer
    Offline posted

    The RecurrencePatternDaysOfWeek enumeration is decorated with the Flags() attribute, so you can logically OR values together.

    Example:
    ObjEvtDay.Recurrence.PatternDaysOfWeek = RecurrencePatternDaysOfWeek.Tuesday Or RecurrencePatternDaysOfWeek.Thursday

Reply Children