LanguageService.OnModeChange(DBGMODE) Method
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.
Called whenever the debug mode has changed while debugging.
public:
virtual int OnModeChange(Microsoft::VisualStudio::Shell::Interop::DBGMODE dbgmodeNew);
public:
virtual int OnModeChange(Microsoft::VisualStudio::Shell::Interop::DBGMODE dbgmodeNew);
virtual int OnModeChange(Microsoft::VisualStudio::Shell::Interop::DBGMODE dbgmodeNew);
public virtual int OnModeChange (Microsoft.VisualStudio.Shell.Interop.DBGMODE dbgmodeNew);
abstract member OnModeChange : Microsoft.VisualStudio.Shell.Interop.DBGMODE -> int
override this.OnModeChange : Microsoft.VisualStudio.Shell.Interop.DBGMODE -> int
Public Overridable Function OnModeChange (dbgmodeNew As DBGMODE) As Integer
If successful, returns S_OK; otherwise, returns an error code.
If your language service needs to adjust for different debugging modes then you must derive a class from the LanguageService class and implement this method. Be sure to call the base class version of this method before your implementation.
The base method sets an internal field to the new debug mode value.