ByDay Class

Represents Nth occurrence (or all occurrences) of the specified day of the week.
Inheritance Hierarchy
SystemObject
  Aspose.Email.Calendar.RecurrencesByDay

Namespace:  Aspose.Email.Calendar.Recurrences
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.3
Syntax
public class ByDay

The ByDay type exposes the following members.

Constructors
  NameDescription
Public methodByDay(DayOfWeek)
Initializes a new instance of ByDay class.
Public methodByDay(Int32, DayOfWeek)
Initializes a new instance of ByDay class.
Properties
  NameDescription
Public propertyDayOfWeek
Gets or sets the day of the week.
Public propertyIsAllOccurrences
Returns True when NthOccurrence is zero (meaning all occurrences of this day of week).
Public propertyNthOccurrence
Gets or sets the nth occurrence of the day of the week.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Remarks

Corresponds to one day of the week specified in the BYDAY part of a recurrence rule.

Can be used in a monthly or yearly recurrence rule to specify Nth occurrence (or all occurrences) of the specified day of the week in a month or year.

BYDAY=MO represents all Mondays of the month or year. To represent all occurrences, set NthOccurrence to 0.

BYDAY=2MO represents 2nd Monday in a month or year.

BYDAY=-1MO represents the last Monday of a month or year.

See Also