Disable Addin runtime

G

Giuseppe

Hi,
I need to disable my addin if the a server is not available.
in which event I have to do it ?

Thank you.
Giuseppe
 
D

Dmitry Streblechenko

Why do you need to disable the add-in on the Outlook level? Who will enable
your add-in when the server becomes available?
Why simply do nothing instead of disabling the add-in?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
J

j

Why do you need to disable the add-in on the Outlook level? Who will enable
your add-in when the server becomes available?
Why simply do nothing instead of disabling the add-in?

Dmitry Streblechenko (MVP)http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool







- Show quoted text -


You unload the AddIn at all (you will need restart the Outlook in
order to laod the AddIn again).

1. Clean all resoures, delete GUI objects like menu, buttons .........
2. AppDomain.Unload(AppDomain.CurrentDomain);


that's all.
 
J

j

Hi,
I need to disable my addin if the a server is not available.
in which event I have to do it ?

Thank you.
Giuseppe

You can unload the AddIn at all (you will need restart the Outlook in
order to laod the AddIn again).

1. Clean all resoures, delete GUI objects like menu,
buttons .........
2. AppDomain.Unload(AppDomain.CurrentDomain);


that's all.
 
Top