Cannot store and retrieve custom ItemProperties from AppointmentItem in case it is a recurring AppointmentItem

跟風遠走 提交于 2019-12-23 05:06:16

问题


I want to add some custom properties on an AppointmentItem. This works perfectly for "normal" AppointmentItems.

Example:

myAppointment.ItemProperties.Add("MyId", Outlook.OlUserPropertyType.olText, false, 1);
MyId = (Outlook.UserProperty)myAppointment.ItemProperties["MyId"];
MyId.Value = myMeeting.id;
meetingId = myMeeting.id;
myAppointment.Save();

Even when I restart Outlook I can fetch those properties from the AppointmentItem like that:

MyId = (Outlook.UserProperty)theCurrentAppointment.ItemProperties["MyId"];                  

No problems so far.

Now when I use the same method in AppointmentItems which represent ONE AppointmentItem within a recurrent appointment series it either does not store or cannot retrieve the MyItem property.

Anyone any idea why it behaves differently when it is a recurring AppointmentItem?

来源:https://stackoverflow.com/questions/55532225/cannot-store-and-retrieve-custom-itemproperties-from-appointmentitem-in-case-it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!