Allow removing all the ItemChanged handlers registered by the add-in
I am unable to unregister a previously registered event handler for ItemChanged event when the handler function is no more available in the page's scope. So there needs to be an ability to either:
- unregister the event handler by name only or
- unregister all the event handlers registered by the add-in
My add-in has more than one web-pages and I have a navigation bar in it. So my web-pages unload when I navigate to another page. Because the Office.context.mailbox.removeHandlerAsync function requires the named handler to be a valid function, I can not unregister the handler in another web-page where the user has navigated to. And when I try to register the event handler again (for that web-page), it fails because more than one handlers are not supported.
We need this for integrating additional capabilities.