I am working on a VSTO project using C#. I am facing an issue and I need your help regarding that. I want not to allow users to be able to move an开发者_如何学C Outlook.MAPI folder into another folder (such as: Inbox, SentItems, etc ...). Is that possible ? Is there a specific property where I can set for this folder so that the users can't move it to another folder. Thanks in advance.
Regards,
No. Not really.
You could provide your own store, and then you can do whatever you want. You may also be interested in Outlook Folder Permissions (it comes with severe restrictions, such as requiring an Exchange mailbox and issues such as implicit ownership of a personal mailbox -- Details of the Exchange Access Control Process).
Removing control of THEIR FOLDERS is likely going to break things or make them hate you.
My recommendations:
- Hide the folder; move it outside of the IPM tree or use the PR_ATTR_HIDDEN property
- Recover the folder if it is moved/deleted
- Continue to work even if the folder has a new location
- Seek alternatives solutions/approaches to problem
精彩评论