A newer version of this page is available. Switch to the current version.

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:

  1. Create a new AppointmentItem of the AppointmentType.Pattern type.
  2. Specify its recurrence information using the AppointmentItem.RecurrenceInfo property.
  3. Add an appointment to the SchedulerControl.AppointmentItems collection.

The following examples show how to create appointments with different recurrence types: