【问题标题】:Outlook 2013 VSTO: Determine which calendar an AppointmentItem is on?Outlook 2013 VSTO:确定 AppointmentItem 在哪个日历上?
【发布时间】:2015-06-16 02:31:53
【问题描述】:

In Outlook 2013 in Calendar view, when an AppointmentItem is selected, I need to be able to determine if that item is on the current user's Calendar, or if they have selected an item from someone else's shared calendar.因此,如果 John Doe 是当前用户,我需要检查所选约会是在 John 的日历上还是在其他人的日历上。 (如果他们选择了其他人日历上的项目,我需要禁用功能区上的按钮) 如何检查?

【问题讨论】:

    标签: outlook vsto


    【解决方案1】:

    关键是通过Application.ActiveExplorer从Explorer.CurrentFolder中获取一个Folder对象。共享文件夹的 Folder.EntryID 值在 Folder.FolderPath 中重复,而非共享文件夹将有一个实际的文件夹路径值。

    如果您想获得对共享文件夹的正确引用,也可以使用 NameSpace.GetSharedDefault。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-08-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-04
      • 1970-01-01
      • 2014-03-17
      • 1970-01-01
      相关资源
      最近更新 更多