How to: Create Recurrence in Code
This section demonstrates how to create recurring appointments in code which have different periodicity and number of occurrences.
Perform the following steps:
- Create a new AppointmentItem of the AppointmentType.Pattern type.
- Specify its recurrence information using the AppointmentItem.RecurrenceInfo property.
- Add an appointment to the SchedulerControl.AppointmentItems collection.
The following examples show how to create appointments with different recurrence types: