Polling a IEntryPoint for it's activated status

Latest post 09-27-2008 3:08 PM by wirecad. 2 replies.
  • 09-26-2008 7:16 PM

    Polling a IEntryPoint for it's activated status

    Is there a way to Poll an IEntryPoint for it's activated status.

    I am looking for a more elegant solution than wrapping a try/catch like this:

    internal bool IsPluginLoaded(IEntryPoint ep)

    {

     /

     

     

     

    /UGLY!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    try

    {

     

     

     

     

    AddInController controller =  AddInController.GetAddInController(ep);

    return true;

    }

     c

     

     

     

     

    atch (ArgumentException)

    {

     

     

     

    return false;

    }

  • 09-27-2008 8:22 AM In reply to

    • Gary
    • Top 10 Contributor
    • Joined on 07-13-2006
    • Posts 320

    Re: Polling a IEntryPoint for it's activated status

    You'll want to keep a list of activated add-ins, and consider adding the activation status as an additional property to this list. 

  • 09-27-2008 3:08 PM In reply to

    Re: Polling a IEntryPoint for it's activated status

    Thanks. I was on the way to creating my own addininfo class. It looks like that is the way to go.

     

     

Page 1 of 1 (3 items) | RSS
Copyright Summit Software Company, 2008. All rights reserved.