Recurrences in appointment

S

semut

Hello,

I notice that all the recurrence object of Appointment/Task will have the
same Entry ID as the master appointment/task item. How do I search for the
selected recurrences? Does each recurrence contain a special ID?

thanks
 
K

Ken Slovak - [MVP - Outlook]

You get the RecurrencePattern and use the GetOccurrence method.
 
S

semut

Thanks for the info.

I have another question. If I make changes to the original occurrences. Can
I still be able to get the occurrence throught the function GetOccurrence ?

Does the occurences in collection has a special ID if I call
IncludeRecurrences?

How to differentiate if it is a master or it is a reccurring item(despite
the start and end)?


thanks.
 
K

Ken Slovak - [MVP - Outlook]

Any changed instances are stored in the Exceptions collection. If you don't
get the next occurrence using GetOccurrence you have to iterate the
Exceptions collection.

Most of what you are asking is shown in the Object Browser. It shows all
methods, properties and events for all objects and collections. That's
always the first stop in learning how to use things.

If you include recurrences in an Items collection you have to check
IsRecurring to see if any specific item is a recurring item. If you don't
set that flag then you get the master item. The Parent property in the
RecurrencePattern will return the master item.
 
Top