Udostępnij za pośrednictwem


DTEEventsClass.OnMacrosRuntimeReset Event

Definition

Occurs when the common language runtime resets, clearing all global variable data and losing all event connections.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 virtual event EnvDTE::_dispDTEEvents_OnMacrosRuntimeResetEventHandler ^ OnMacrosRuntimeReset;
public:
 virtual event EnvDTE::_dispDTEEvents_OnMacrosRuntimeResetEventHandler ^ OnMacrosRuntimeReset;
public virtual event EnvDTE._dispDTEEvents_OnMacrosRuntimeResetEventHandler OnMacrosRuntimeReset;
member this.OnMacrosRuntimeReset : EnvDTE._dispDTEEvents_OnMacrosRuntimeResetEventHandler 
Public Overridable Custom Event OnMacrosRuntimeReset As _dispDTEEvents_OnMacrosRuntimeResetEventHandler Implements OnMacrosRuntimeReset

Event Type

Implements

Examples

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

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.

Applies to