DTEEventsClass.OnMacrosRuntimeReset Event

This API 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.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
Public Overridable Event OnMacrosRuntimeReset As _dispDTEEvents_OnMacrosRuntimeResetEventHandler
public virtual event _dispDTEEvents_OnMacrosRuntimeResetEventHandler OnMacrosRuntimeReset
public:
virtual  event _dispDTEEvents_OnMacrosRuntimeResetEventHandler^ OnMacrosRuntimeReset {
    void add (_dispDTEEvents_OnMacrosRuntimeResetEventHandler^ value);
    void remove (_dispDTEEvents_OnMacrosRuntimeResetEventHandler^ value);
}
abstract OnMacrosRuntimeReset : IEvent<_dispDTEEvents_OnMacrosRuntimeResetEventHandler,
    EventArgs>
override OnMacrosRuntimeReset : IEvent<_dispDTEEvents_OnMacrosRuntimeResetEventHandler,
    EventArgs>
JScript does not support events.

Implements

_dispDTEEvents_Event.OnMacrosRuntimeReset

Remarks

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.

Examples

Public Sub DTEEvents_OnMacrosRuntimeReset() Handles DTEEvents.OnMacrosRuntimeReset
    MsgBox("The CLR is being reset.")
End Sub

.NET Framework Security

See Also

Reference

DTEEventsClass Class

EnvDTE Namespace