AppointmentItem.CreateException(AppointmentType, Int32) Method

Obsolete. Creates an appointment that is an exception in a recurring series.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v20.1.dll

Declaration

[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

Parameters

Name Type Description
type AppointmentType

An AppointmentType value that specifies the type of the exception.

recurrenceIndex Int32

A zero-based integer which specifies the new appointment's index in the recurring series.

Returns

Type Description
AppointmentItem

An AppointmentItem object which is the newly created exception.

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.

See Also