RecurrencePattern.RecurrenceType Property

Returns or sets an OlRecurrenceType constant specifying the frequency of occurrences for the recurrence pattern. Read/write.

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

Syntax

'Declaration
<DispIdAttribute()> _
Property RecurrenceType As OlRecurrenceType
    Get
    Set
'Usage
Dim instance As RecurrencePattern
Dim value As OlRecurrenceType

value = instance.RecurrenceType

instance.RecurrenceType = value
[DispIdAttribute()]
OlRecurrenceType RecurrenceType { get; set; }

Property Value

Type: Microsoft.Office.Interop.Outlook.OlRecurrenceType

Remarks

You must set the RecurrenceType property before you set other properties for a RecurrencePattern object. The RecurrencePattern properties that you can set subsequently depends on the value of RecurrenceType, as shown in the following table:

OlRecurrenceType

Valid RecurrencePattern Properties

olRecursDaily

Duration, EndTime, Interval, NoEndDate, Occurrences, PatternStartDate, PatternEndDate, StartTime

olRecursWeekly

DayOfWeekMask, Duration, EndTime, Interval, NoEndDate, Occurrences, PatternStartDate, PatternEndDate, StartTime

olRecursMonthly

DayOfMonth, Duration, EndTime, Interval, NoEndDate, Occurrences, PatternStartDate, PatternEndDate, StartTime

olRecursMonthNth

DayOfWeekMask, Duration, EndTime, Interval, Instance, NoEndDate, Occurrences, PatternStartDate, PatternEndDate, StartTime

olRecursYearly

DayOfMonth, Duration, EndTime, Interval, MonthOfYear, NoEndDate, Occurrences, PatternStartDate, PatternEndDate, StartTime

olRecursYearNth

DayOfWeekMask, Duration, EndTime, Interval, Instance, NoEndDate, Occurrences, PatternStartDate, PatternEndDate, StartTime

See Also

Reference

RecurrencePattern Interface

RecurrencePattern Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Create an Annual Recurring Appointment That Uses a YearNth Pattern

How to: Assign a Task to a Recipient

How to: Create a Recurring Task