AppointmentItem.CreateException(AppointmentType, Int32) Method
OBSOLETE
Use the following API instead: scheduler.
Creates an appointment that is an exception in a recurring series.
Namespace: DevExpress.Xpf.Scheduling
Assembly: DevExpress.Xpf.Scheduling.v24.2.dll
NuGet Package: DevExpress.Wpf.Scheduling
#Declaration
[Obsolete("Use the following API instead: scheduler.GetOccurrenceOrException(pattern, recurrenceIndex: 0).Type = AppointmentType.ChangedOccurrence;", false)]
public AppointmentItem CreateException(
AppointmentType type,
int recurrenceIndex
)
#Parameters
Name | Type | Description |
---|---|---|
type | Appointment |
An Appointment |
recurrence |
Int32 | A zero-based integer which specifies the new appointment’s index in the recurring series. |
#Returns
Type | Description |
---|---|
Appointment |
An Appointment |
#Remarks
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.