View Single Post
  #2  
Old September 25th 08, 09:24 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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!


Ads