By default, the Repository Add-in for Visual Basic is not active. Each Visual Basic user can choose to add the Repository Add-in to the list of active add-in modules. If your add-in module calls the Repository Add-in for Visual Basic, you must ensure that it is active before making those calls.
There are two cases to consider:
Even if the Repository Add-in is active when your module starts, situations can arise that cause the Repository Add-in to shut down. If the Repository Add-in shuts down, it fires a Shutdown event during its shutdown processing. Your add-in module should register for this event.