DTEEventsClass::OnMacrosRuntimeReset Event
Visual Studio 2015
This API supports the product 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.
Assembly: EnvDTE (in EnvDTE.dll)
public: event _dispDTEEvents_OnMacrosRuntimeResetEventHandler^ OnMacrosRuntimeReset { virtual void add(_dispDTEEvents_OnMacrosRuntimeResetEventHandler^ value); virtual void remove(_dispDTEEvents_OnMacrosRuntimeResetEventHandler^ value); }
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.") End Sub
Show: