我正在写C#addin,我的约会有问题。假设我已经委派了用户,所以我的Outlook中有两个日历,是我的默认日历,以及我的委托人的一个日历。当我点击我的日历或委托人日历时,会打开预约。我的问题是如何确定它打开的日历?事实上,即使是不是从我的日历中预约的信息对我来说也足够了......
答案 0 :(得分:0)
修改强>
您可以通过以下方式获取约会的邮箱名称:
(((Inspector.CurrentItem as Outlook.AppointmentItem).Parent //this returns "Calendar" folder
as Outlook.MAPIFolder).Parent //now point to this appointment's root mailbox
as Outlook.MAPIFolder).Name; //this returns "Mailbox - UserName"