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

IAppointmentStorageBase.Add(Appointment) Method

Appends the specified Appointment object to the storage's collection.

Namespace: DevExpress.XtraScheduler

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


int Add(
    Appointment appointment


Name Type Description
appointment Appointment

An Appointment object to append to the collection.


Type Description

An integer value indicating the position at which the new appointment was inserted.


This method adds an Appointment object to the end of the appointment collection maintained by the current AppointmentStorageBase object. This collection can be accessed via the storage's AppointmentStorageBase.Items property.

To prevent excessive updates when changes to the appointment collection are applied, enclose the code that uses the Add method within calls to PersistentObjectStorage<T>.BeginUpdate and PersistentObjectStorage<T>.EndUpdate methods.


In order to perform the same action at the level of the appointment collection, the collection's AppointmentCollection.Add method can be used.

See Also