Skip to main content
A newer version of this page is available. .

Appointment.OriginalOccurrenceEnd Property

Returns the end of the occurence chain or the original appointment end date. This information allows you to build complex queries in the SchedulerStorageBase.FetchAppointments event handler.

Namespace: DevExpress.XtraScheduler

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

NuGet Packages: DevExpress.Scheduler.Core, DevExpress.WindowsDesktop.Scheduler.Core

Declaration

DateTime OriginalOccurrenceEnd { get; }

Property Value

Type Description
DateTime

A DateTime value that is the end of the appointment.

Remarks

OriginalOccurenceStart and OriginalOccurenceEnd properties return different values depending on the appointment type.

  • Pattern - these properties specify the start of the earliest appointment and the end of the latest appointment in the occurrence chain (including changed and deleted occurrences).

  • Changed or deleted occurrence - OriginalOccurenceStart and OriginalOccurenceEnd properties return start and end dates this occurrence had before it was changed or deleted.

  • Regular occurrence - the OriginalOccurenceStart property returns the Appointment.Start property value; the OriginalOccurenceEnd property is identical to the Appointment.End property.

The Appointment.OriginalOccurrenceStart and Appointment.OriginalOccurrenceEnd values are stored in the data source fields specified with the AppointmentMappingInfo.OriginalOccurrenceStart and AppointmentMappingInfo.OriginalOccurrenceEnd mappings. You can call the static OriginalOccurrenceDateHelper.Update method to forcibly populate these fields.

See Also