|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
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.