Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Visual Studio 2015 创建 Outlook 插件。
我在 Outlook 2016 中配置了两个电子邮件地址。现在,当我单击特定收件箱时,我想要属于该收件箱的用户的电子邮件地址。
那么,您是否试图找出特定商店的所有者?请记住,某些商店(例如 PST)没有与其关联的内在用户 - 它可能是独立的 PST 或具有多个 POP3/SMTP 帐户的 PST 交付到该商店。
您可以遍历Application.Session.Accounts集合并检查Account.DeliveryStore属性(使用 比较商店条目 ID Namespace.CompareEntryIDs)。
Application.Session.Accounts
Account.DeliveryStore
Namespace.CompareEntryIDs