CalendarException

CalendarException class

Represent exceptional time periods in a calendar.

The CalendarException type exposes the following members:

Constructors

NameDescription
CalendarException()Initializes a new instance of the

Properties

NameDescription
entered_by_occurrencesGets or sets a value indicating whether the range of recurrence is defined by entering a number of occurrences.
False specifies that the range of recurrence is defined by entering a finish date.
from_dateGets or sets the beginning of the exception time.
to_dateGets or sets the end of the exception time.
occurrencesGets or sets the number of occurrences for which the calendar exception is valid.
nameGets or sets the name of the exception.
typeGets or sets the exception type.
periodGets or sets the period of recurrence for the exception.
days_of_weekGets the DayTypeCollection for this object.
The days of the week on which the exception is valid.
month_itemGets or sets the month item for which an exception recurrence is scheduled.
month_positionGets or sets the position of a month item within a month.
monthGets or sets the month for which an exception recurrence is scheduled.
month_dayGets or sets the day of a month on which an exception recurrence is scheduled.
day_workingGets or sets a value indicating whether the specified date or day type is working.
working_timesGets or sets the WorkingTimeCollection object.
The collection of working times that defines the time worked on the weekday.
parent_calendarGets the parent calendar for this object.

Methods

NameDescription
delete()Deletes the Exception instance from parent calendar CalendarExceptionCollection object.
check_exception(dt)Returns true if the specified instance of the
get_working_time()Returns the working time for a calendar exception.
get_exception_dates()Returns dates on which the calendar exception is applicable.

See Also