如何将自定义信息存储到 Outlook AppointmentItem
我正在创建一个 Outlook 插件来创建新的约会,如下所示:
Outlook.AppointmentItem oAppointment =
(Outlook.AppointmentItem)outlookApp.CreateItem(Outlook.OlItemType.olAppointmentItem);
oAppointment.Subject = subject;
oAppointment.Body = description;
oAppointment.Start = startDate;
oAppointment.End = endDate;
oAppointment.Save();
现在,我想向这些约会添加一些自定义信息,以便应用程序知道插件创建了哪些约会。我可以将该信息存储在 AppointmentItem 中,还是必须构建某种单独的数据结构来将约会全局 ID 映射到自定义信息?
谢谢。
I am creating an Outlook Add-in that creates new appointments, like so:
Outlook.AppointmentItem oAppointment =
(Outlook.AppointmentItem)outlookApp.CreateItem(Outlook.OlItemType.olAppointmentItem);
oAppointment.Subject = subject;
oAppointment.Body = description;
oAppointment.Start = startDate;
oAppointment.End = endDate;
oAppointment.Save();
Now, i want to add some custom information to those appointments, so that the application knows which appointments were created by the Add-in. Can I store that information inside the AppointmentItem, or do i have to build some sort of separate data structure that maps the appointment global id to the custom information?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试使用 UserProperties 属性为此。
You could try using the UserProperties property for that.