When i want to delete an instance of a recurring event, the fuction "theScheduler_AppointmentUpdate" will fired . My code is as bellow ,
void theScheduler_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e) { Appointment appointment = e.Appointment;
// People resizing
SPListItem li = GetListItem(appointment);
if (appointment.RecurrenceState == RecurrenceState.Master) { // This means somebody try to delete an instance of recurring event RecurrenceRule recRule; RecurrenceRule.TryParse(appointment.RecurrenceRule, out recRule); if (recRule != null && recRule.Exceptions.Count > 0) { // The last exception is the DateTime of the deleted appointment DateTime deletedDateTime = recRule.Exceptions[recRule.Exceptions.Count - 1]; CreateDeletedAppointment(deletedDateTime, appointment, li); } } }