问题
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