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.
This event supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Occurs when the common language runtime resets, clearing all global variable data and losing all event connections.
EnvDTE (in envdte.dll)
public virtual event _dispDTEEvents_OnMacrosRuntimeResetEventHandler _dispDTEEvents_Event.OnMacrosRuntimeReset
J# supports the use of explicit interface implementations, but not the declaration of new ones.
JScript supports the use of events, but not the declaration of new ones.
If you connect event handlers not in the
EnvironmentEvents host item or initialize global variables, you must re-execute that code in the OnMacrosRuntimeReset event handler, because resetting the macros runtime destroys global variable values and event connections.
Public Sub DTEEvents_OnMacrosRuntimeReset() Handles DTEEvents.OnMacrosRuntimeReset
MsgBox( "The CLR is being reset.")