DTEEventsClass.ModeChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the mode of the development environment (build, run, or debug) is changed.
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
virtual event EnvDTE::_dispDTEEvents_ModeChangedEventHandler ^ ModeChanged;
public:
virtual event EnvDTE::_dispDTEEvents_ModeChangedEventHandler ^ ModeChanged;
public virtual event EnvDTE._dispDTEEvents_ModeChangedEventHandler ModeChanged;
member this.ModeChanged : EnvDTE._dispDTEEvents_ModeChangedEventHandler
Public Overridable Custom Event ModeChanged As _dispDTEEvents_ModeChangedEventHandler Implements ModeChanged
Event Type
Implements
Examples
Public Sub DTEEvents_ModeChanged(ByVal LastMode As EnvDTE.vsIDEMode) Handles DTEEvents.ModeChanged
MsgBox("The IDE mode has changed.")
End Sub
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.