简体   繁体   中英

Vsto: How to deactivate an addin

I built some addin for Excel, I use some webservices, and I'd like to know if there is a way to desactivate my addin if my webservices don't work? So I have to add something like:

private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
    if(!isalive())
    {
       turn off the addin
    }

}

but what could I add to turn them off?

Thanks for your help

这个信息,我相信,你必须设置Connect属性设置为true来激活和假停用。

YourAddin.Connect = true;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM