Determining whether an Outlook Appointment will open as a single incident or series?

I am creating an Outlook add-in in Visual Studio 2010 using VSTO with VB.net to synchronize my Outlook calendar data with an internal, patented Calendar. Our users want to be able to reopen a meeting in Outlook, send meeting data, and update the internal calendar with duplicate meeting information.

I really have code that is great for creating recurring appointments and single appointments. The problem is that I don’t see the difference (when viewing AppointmentItem or RecurrenceItem members) between one entry in the series being opened or if the whole series was open; all data is the same, all functions have the same result. I see that there is a difference in the menu bars, but I don’t even see a way to detect this difference.

Does anyone come across this, and if so, how did you get around it?

+4
source share
1 answer

You can use the RecurrenceState property of the AppointmentItem property.
If the destination is open as a single event, it is olApptOccurrence. If it is open as a series - RecurrenceState is equal to olApptMaster.

+2
source

Source: https://habr.com/ru/post/1398664/


All Articles