DTEEventsClass.ModeChanged Event

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

Occurs when the mode of the development environment (build, run, or debug) is changed.

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

Syntax

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

Implements

_dispDTEEvents_Event.ModeChanged

Remarks

The LastMode parameter is a vsIDEMode constant specifying the previous mode the environment was in, either vsIDEModeDebug or vsIDEModeDesign.

If, for example, the IDE was last in Debug mode but is now in Design mode, the value of LastMode would be vsIDEModeDebug.

Examples

Public Sub DTEEvents_ModeChanged(ByVal LastMode As EnvDTE.vsIDEMode) Handles DTEEvents.ModeChanged
    MsgBox("The IDE mode has changed.")
End Sub

.NET Framework Security

See Also

Reference

DTEEventsClass Class

EnvDTE Namespace