Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   How add-in can unload itself? (http://www.outlookbanter.com/add-ins-outlook/79281-how-add-can-unload-itself.html)

Smok September 25th 08 07:36 PM

How add-in can unload itself?
 
So, is there anyway for add-in to unload itself? Asking saved Outlook COM
object to set "Connect" to FALSE seems bad solution to me, because I don't
quite understand what will happen.
Any thoughts?
Thanks!

Ken Slovak - [MVP - Outlook] September 25th 08 09:24 PM

How add-in can unload itself?
 
What would be requesting the addin to unload, other code somewhere else? If
that's true set Connect to false and the addin's OnDisconnection event will
fire. From inside the addin just release all Outlook and addin objects.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Smok" wrote in message
...
So, is there anyway for add-in to unload itself? Asking saved Outlook COM
object to set "Connect" to FALSE seems bad solution to me, because I don't
quite understand what will happen.
Any thoughts?
Thanks!




All times are GMT +1. The time now is 12:28 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com