public int Add( Appointment appointment )
Public Function Add( appointment As Appointment ) As Integer
An Appointment object to append to the collection.
An integer value indicating the position at which the new element was inserted.
This method adds an Appointment object to the end of the appointment collection maintained by the current AppointmentDataStorage object. This collection can be accessed via the storage's AppointmentDataStorage.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.
To perform the same action at the appointment collection level, use the collection's AppointmentCollection.Add method.