CalendarException

CalendarException class

Represent exceptional time periods in a calendar.

Constructors

NameDescription
CalendarExceptionInitializes a new instance of the CalendarException class.

Methods

NameDescription
CheckExceptionReturns true if the specified instance of the DateTime struct is the exception day.
DeleteDeletes the Exception instance from parent calendar CalendarExceptionCollection object.
get_DaysOfWeekGets the DayTypeCollection for this object. The days of the week on which the exception is valid.
get_DayWorkingGets a value indicating whether the specified date or day type is working.
get_EnteredByOccurrencesGets 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.
get_FromDateGets the beginning of the exception time.
get_MonthGets the month for which an exception recurrence is scheduled.
get_MonthDayGets the day of a month on which an exception recurrence is scheduled.
get_MonthItemGets the month item for which an exception recurrence is scheduled.
get_MonthPositionGets the position of a month item within a month.
get_NameGets the name of the exception.
get_OccurrencesGets the number of occurrences for which the calendar exception is valid.
get_ParentCalendarGets the parent calendar for this object.
get_PeriodGets the period of recurrence for the exception.
get_ToDateGets the end of the exception time.
get_TypeGets the exception type.
get_WorkingTimesGets the WorkingTimeCollection object. The collection of working times that defines the time worked on the weekday.
GetExceptionDatesReturns dates on which the calendar exception is applicable.
GetWorkingTimeReturns the working time for a calendar exception.
set_DayWorkingSets a value indicating whether the specified date or day type is working.
set_EnteredByOccurrencesSets 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.
set_FromDateSets the beginning of the exception time.
set_MonthSets the month for which an exception recurrence is scheduled.
set_MonthDaySets the day of a month on which an exception recurrence is scheduled.
set_MonthItemSets the month item for which an exception recurrence is scheduled.
set_MonthPositionSets the position of a month item within a month.
set_NameSets the name of the exception.
set_OccurrencesSets the number of occurrences for which the calendar exception is valid.
set_PeriodSets the period of recurrence for the exception.
set_ToDateSets the end of the exception time.
set_TypeSets the exception type.
set_WorkingTimesSets the WorkingTimeCollection object. The collection of working times that defines the time worked on the weekday.