Programatically disable the com addin

Y

Yahya Saad

Dear Sirs,

I developed a Com Add-in for Outlook that copies items to a public
folder, I would like to check if the public folder is accessible and if not
to disable the add-in. How can I programmatically disable the add-in?

Regards,
Yahya
 
K

Ken Slovak

If you release all the addin's Outlook and other objects it should receive
it's On_Disconnection event. Each addin also has a Connect Boolean that can
be toggled True/False to connect/disconnect.
 
Y

Yahya Saad

Thanks Ken,
But where is the connect boolean and how can I call it?

Regards,
Yahya
 
K

Ken Slovak

Connect is a property of the COMAddIn object. If you look in the Object
Browser under Application you will see the COMAddIns collection. Each member
of that collection has a Connect property. You can iterate the collection
until you find the addin you want and work with that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top