LanguageService.OnModeChange(DBGMODE) Method

Definition

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

Parameters

dbgmodeNew
DBGMODE

[in] The new debug mode as specified by a value from the DBGMODE enumeration.

Returns

If successful, returns S_OK; otherwise, returns an error code.

Implements

Remarks

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.

Applies to