AppointmentItem.CreateException(AppointmentType, Int32) Method
Obsolete. Creates an appointment that is an exception in a recurring series.
[Obsolete("Use the following API instead: scheduler.GetOccurrenceOrException(pattern, recurrenceIndex: 0).Type = AppointmentType.ChangedOccurrence;", false)] public AppointmentItem CreateException( AppointmentType type, int recurrenceIndex )
<Obsolete("Use the following API instead: scheduler.GetOccurrenceOrException(pattern, recurrenceIndex: 0).Type = AppointmentType.ChangedOccurrence;", False)> Public Function CreateException( type As AppointmentType, recurrenceIndex As Integer ) As AppointmentItem
An AppointmentType value that specifies the type of the exception.
A zero-based integer which specifies the new appointment's index in the recurring series.
An AppointmentItem object which is the newly created exception.
The CreateException method is obsolete. Use the GetOccurrenceOrException method instead.
You can also manually create an exception. Create a new AppointmentItem, set its type to ChangedOccurrence or DeletedOccurrence, and use the SetPatternReference method to embed the item into a recurring chain. Add the item to the AppointmentItems collection.