IRecurrencePattern Properties (Windows CE 5.0)
The IRecurrencePattern interface reads the properties described in the following tables.
Properties in Vtable Order
Property | Description |
---|---|
RecurrenceType
|
Returns or sets the recurrence frequency for an Appointment or Task. When you set up a recurrence, you must set this property first.
olRecursDaily olRecursWeekly olRecursMonthly olRecursMonthNth olRecursYearly olRecursYearNth |
PatternStartDate
|
Returns or sets the start date of the recurrence. |
PatternEndDate
|
Returns or sets the end date of the recurrence. To use this property, set NoEndDate to FALSE. After you set this property, NumberOfOccurrences is set automatically when you save the Task or Appointment.
Not used if NoEndDate is TRUE. |
NoEndDate
|
Returns or sets whether the recurrence has an end date. TRUE if the recurrence has no end date, or FALSE if the recurrence has an end date.
If you set this to TRUE, PatternEndDate and Occurrences are not used. |
Occurrences
|
Returns or sets the number of occurrences. To use this property, set NoEndDate to FALSE. After you set this property, PatternEndDate is set automatically when you save the Task or Appointment.
Not used if NoEndDate is TRUE. |
StartTime
|
Returns or sets the start time for a recurring appointment. Pocket Outlook ignores the date and uses only the time.
The time returned is in the time zone of the appointment. Supported only for appointments. |
Duration
|
Returns or sets the duration for a recurring appointment. If you do not set this, Pocket Outlook sets it from the appointment. This is ignored if you set both StartTime and EndTime. It is used to calculate the other two if one or both is omitted. This cannot be set longer than 31 days.
Supported only for appointments. |
EndTime
|
Returns or sets when a recurring appointment ends. Pocket Outlook uses only the time portion and ignores the date.
The time returned is in the time zone of the Appointment. Supported only for appointments. |
Exceptions
|
Returns a collection of exceptions to a recurring appointment. Changing the following properties on a single instance of a recurring appointment does not cause an exception.
AllDayEvent Categories IsRecurring MeetingStatus ReminderOptions ReminderSoundFile Recipients Sensitivity Supported only for Appointments. |
When you create a recurring Appointment, the IRecurrencePattern object gets the StartTime, Duration, and EndTime from the Appointment, so you do not need to set them. If you do set these values, your settings override the Appointment settings. If you set all three properties, Pocket Outlook ignores the Duration setting and defines the appointment with the StartTime and EndTime settings. If you set any two of these properties and leave the third undefined, Pocket Outlook calculates the undefined setting from the two properties you set.
To set the start date of a RecurrencePattern object, use the PatternStartDate property. For appointments, the Duration property of an IRecurrencePattern object cannot be longer than 31 days. Furthermore, the minimum period between instances of a recurring Appointment cannot be less than the duration of the Appointment. Otherwise Appointment instances would overlap.
The value of the RecurrenceType property determines whether you set the following properties. You must set the RecurrenceType property before setting any of these properties.
Property | Description | Valid for RecurrenceType |
---|---|---|
Interval
|
The number of units between occurrences (days, weeks, months), from 1 to 999. | olRecursDaily
olRecursMonthly olRecursMonthNth olRecursWeekly |
DayOfWeekMask
|
The days a pattern occurs — a combination of the day constants from olSunday through olSaturday. | olRecursMonthNth
olRecursWeekly olRecursYearNth |
DayOfMonth
|
The day in any month a pattern occurs, from 1 to 31. If there are fewer days in a given month than the setting, the recurrence occurs on the last day of that month. | olRecursMonthly
olRecursYearly |
Instance
|
The week of any month the recurrence occurs, from one to five.
The value five is always the last week of the month, regardless of whether the calculated date actually exists. |
olRecursMonthNth
olRecursYearNth |
MonthOfYear
|
The month a recurrence occurs, from 1 to 12. | olRecursYearly
olRecursYearNth |
Return Values
Each property method supports the standard HRESULT return values, including S_OK.
Requirements
OS Versions: Windows CE 2.0 and later.
Header: Pimstore.h.
Link Library: Pimstore.lib.
See Also
Send Feedback on this topic to the authors