Appointment.OriginalOccurrenceEnd Property

Gets the Appointment.End value for the appointment in a recurrence series that conforms to the recurrence rule.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v19.2.Core.dll

Declaration

DateTime OriginalOccurrenceEnd { get; }
ReadOnly Property OriginalOccurrenceEnd As Date

Property Value

Type Description
DateTime

A DateTime value that is the end of the appointment.

Remarks

The OriginalOccurrenceEnd property stores the original Appointment.End value of an appointment occurrence before it was changed or deleted.

  • For normal appointments, the OriginalOccurrenceEnd property value equals the End value.
  • For patterns, the OriginalOccurrenceEnd value equals End value for patterns with an end clause, and DateTime.MaxValue for endless patterns.
  • For recurring series exceptions, the OriginalOccurrenceEnd property stores the End value of a regular occurrence in the series.
TIP

Use the OriginalOccurrenceEnd property in a query when handling the SchedulerStorageBase.FetchAppointments event to retrieve exceptions for a certain interval.

The Appointment.OriginalOccurrenceStart and Appointment.OriginalOccurrenceEnd values are stored in the data source fields specified with the AppointmentMappingInfo.OriginalOccurrenceStart and AppointmentMappingInfo.OriginalOccurrenceEnd mappings. After the existing database is upgraded to add the fields, call the static helper's OriginalOccurrenceDateHelper.Update method only once to populate the added fields.

See Also