_AppointmentItem.GetRecurrencePattern Method

Returns a RecurrencePattern object that represents the recurrence attributes of an appointment.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Function GetRecurrencePattern As RecurrencePattern
'Usage
Dim instance As _AppointmentItem
Dim returnValue As RecurrencePattern

returnValue = instance.GetRecurrencePattern()
[DispIdAttribute()]
RecurrencePattern GetRecurrencePattern()

Return Value

Type: Microsoft.Office.Interop.Outlook.RecurrencePattern
A RecurrencePattern object that represents the recurrence attributes of an appointment.

Remarks

If there is no existing recurrence pattern, a new empty RecurrencePattern object is returned.

When you work with recurring appointment items, you should release any prior references, obtain new references to the recurring appointment item before you access or modify the item, and release these references as soon as you are finished and have saved the changes. This practice applies to the recurring AppointmentItem object, and any Exception or RecurrencePattern object. To release a reference in Visual Basic, set that existing object to Nothing. In C#, explicitly release the memory for that object.

Note that even after you release your reference and attempt to obtain a new reference, if there is still an active reference, held by another add-in or Outlook, to one of the above objects, your new reference will still point to an out-of-date copy of the object. Therefore, it is important that you release your references as soon as you are finished with the recurring appointment.

See Also

Reference

_AppointmentItem Interface

_AppointmentItem Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Create a Recurring Appointment by Using the Default Recurrence Pattern

How to: Create a Recurring Appointment That Has a Weekly Pattern

How to: Find a Specific Appointment in a Recurring Appointment Series

How to: Create an Exception Appointment in a Recurring Appointment Series