Intercepting Outlook category assignment events?

怎甘沉沦 提交于 2020-01-04 06:15:26

问题


Note this is not a duplicate of this similar but different question!

My question is not how to intercept Category create / rename / delete events, but how to intercept when a user assigns a category to an item (contact, meeting etc). I am just starting to explore the Outlook object model, and I'm struggling to 'get' how it works. Any assistance in the right direction would be fantastic!

I realise I'm not providing much detail and this seems like a 'please do it for me' type question, but I really only need a brief idea of if this is possible, unfortunatley I don't have much time to research. Thanks!


回答1:


I think you will need and Inspector wrapper and and Explorer wrapper to get all the places that you can change the category (as you can right click in the explorer view).

But they catagory assignment should fire the Item PropertyChange event. In the explorer you will have to track the selected items and wire up the PropertyChange event for each item in the selection.

Marcus




回答2:


A possible solution. Not anything I have actually tried, yet.

  • OlkCategoryEvents_Event.Change Event - Microsoft.Office.Interop.Outlook - Occurs when a category selection has changed. Namespace: Microsoft.Office.Interop.Outlook
  • Assembly: Microsoft.Office.Interop.Outlook (in microsoft.office.interop.outlook.dll), using event OlkCategoryEvents_ChangeEventHandler Change


来源:https://stackoverflow.com/questions/2312050/intercepting-outlook-category-assignment-events

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