Navigation bar
  Print document Start Previous page
 36 of 65 
Next page End  

Gravitybox WebSchedule.NET
1998-2005 Gravitybox Software LLC
Page 34 of 65
Deleting Appointments
Appointments are just as easy to remove. You may remove by key, index, or object.
The RemoveAt method takes an index [0..N-1] of the object to remove in the collection.
If the index does not exist, an out of range exception is thrown.
Schedule1.AppointmentCollection.RemoveAt(5)
The Remove method is overloaded to take a key or an appointment object. The code
snippet below removes an appointment object and an appointment with the key
“abc123”.
Schedule1.AppointmentCollection.Remove(appointment)
Schedule1.AppointmentCollection.Remove("abc123")
http://www.purepage.com