Export (0) Print
Expand All

RecurrencePattern Object


This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Aa158762.parchild(en-us,office.10).gifRecurrencePattern
Aa158762.space(en-us,office.10).gifAa158762.parchild(en-us,office.10).gif

Represents the pattern of incidence of recurring appointments and tasks for the associated AppointmentItem and TaskItem object.

Using the RecurrencePattern Object

Use the GetRecurrencePattern method to return the RecurrencePattern object associated with an AppointmentItem or TaskItem object.

Calling GetRecurrencePattern or ClearRecurrencePattern has the side effect of setting the IsRecurring property of the item accordingly. This property can be used as required for efficient filtering of the Items object.

The type of recurrence pattern is indicated by the RecurrenceType property. The RecurrenceType property is the first property you should set.

The following properties are valid for all recurrence patterns: EndTime, Occurrences, StartDate, StartTime, or Type.

The following table shows the properties that are valid for the different recurrence types. The properties listed are not all required for the given type; an error occurs if the item is saved and the property is null or contains an invalid value. Monthly and yearly patterns are only valid for a single day. Weekly patterns are only valid as the Or of the DayOfWeekMask.

RecurrenceTypePropertiesExample
olRecursDaily IntervalEvery N days
 DayOfWeekMaskEvery Tuesday, Wednesday, and Thursday
olRecursMonthly IntervalEvery N months
 DayOfMonthThe Nth day of the month
olRecursMonthNth IntervalEvery N months
 InstanceThe Nth Tuesday
 DayOfWeekMaskEvery Tuesday and Wednesday
olRecursWeekly IntervalEvery N weeks
 DayOfWeekMaskEvery Tuesday, Wednesday, and Thursday
olRecursYearly DayOfMonthThe Nth day of the month
 MonthOfYearFebruary
olRecursYearNth InstanceThe Nth Tuesday
 DayOfWeekMaskTuesday, Wednesday, Thursday
 MonthOfYearFebruary

Show:
© 2014 Microsoft