Occurs whenever an add-in, which is set to load when Visual Studio starts, loads.
Assembly: Extensibility (in Extensibility.dll)
On occasion, OnConnection does not occur correctly, such as when an add-in is loaded, but a component required by an add-in has not yet loaded. This is unusually due to the fact that Visual Studio has not yet started completely. Using guarantees that the Visual Studio integrated development environment (IDE) has completed the startup process.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.