Cannot Access Shared Contacts Folder In Outlook 2010 VB.Net

独自空忆成欢 提交于 2019-12-12 13:51:55

问题


Im creating outlook add-in and I am having problems getting into Shared folder using vb.net.

I have tried

contactsFolder = ns.Folders.Item("Shared Contacts")

and

contactsFolder = ns.Folders.Item("Public Folders")

still have no way of accessing it. can someone help me please. I keep getting error:

The attempted operation failed.  An object could not be found.

回答1:


Since you are using a shared folder, the folder must not exist in the default Store. You probably need to enumerate Session.Stores (ns.Stores). See related SO post for code example.



来源:https://stackoverflow.com/questions/12097495/cannot-access-shared-contacts-folder-in-outlook-2010-vb-net

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