A newer version of this page is available. Switch to the current version.

AppointmentDataStorage Class

A storage that holds a collection of appointments.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v19.1.dll

Declaration

public class AppointmentDataStorage :
    ItemDataStorage<Appointment>,
    IAppointmentStorage,
    IAppointmentStorageBase,
    IPersistentObjectStorage<Appointment>,
    IBatchUpdateable,
    IDisposable,
    IInternalAppointmentStorage,
    IInternalPersistentObjectStorage<Appointment>
Public Class AppointmentDataStorage
    Inherits ItemDataStorage(Of Appointment)
    Implements IAppointmentStorage,
               IAppointmentStorageBase,
               IPersistentObjectStorage(Of Appointment),
               IBatchUpdateable,
               IDisposable,
               IInternalAppointmentStorage,
               IInternalPersistentObjectStorage(Of Appointment)

Related API Members

The following members accept/return AppointmentDataStorage objects:

Remarks

The AppointmentDataStorage class represents a storage which holds appointments. The functionality of the AppointmentDataStorage class can be accessed via the SchedulerDataStorage.Appointments property.

To get the collection of appointments use the AppointmentStorageBase.Items property.

Connecting the AppointmentDataStorage object to a data source via the PersistentObjectStorage<T>.DataSource and PersistentObjectStorage<T>.DataMember properties enables bound mode. In this mode, if the PersistentObjectStorage<T>.AutoReload property is set to true appointments are automatically retrieved from the specified data source, and when data in the data source is modified the AppointmentDataStorage object automatically reloads the data. If the AutoReload property is set to false data is not automatically loaded and reloaded from the data source. You should use the SchedulerDataStorage.RefreshData method to manually reload data in this case.

Use the AppointmentStorageBase.Mappings property to specify which fields in the bound data source hold an appointment's description, location, type, recurrence information, resource id, etc. The values of these fields will be synchronized with the corresponding properties of appointments.

In bound mode the AppointmentDataStorage object synchronizes its data with the data source. If appointments are added, deleted or modified via the AppointmentDataStorage object the changes are saved to the data source.

In unbound mode (when the AppointmentDataStorage object is not bound to a data source) you can use the AppointmentStorageBase.Items property to manually populate the storage with appointments.

Implements

Inheritance

Object
DevExpress.XtraScheduler.Internal.ItemDataStorage<Appointment>
AppointmentDataStorage
See Also