LanguageService.OnModeChange Method

Called whenever the debug mode has changed while debugging.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'宣言
Public Overridable Function OnModeChange ( _
    dbgmodeNew As DBGMODE _
) As Integer
'使用
Dim instance As LanguageService
Dim dbgmodeNew As DBGMODE
Dim returnValue As Integer

returnValue = instance.OnModeChange(dbgmodeNew)
public virtual int OnModeChange(
    DBGMODE dbgmodeNew
)
public:
virtual int OnModeChange(
    DBGMODE dbgmodeNew
)
public function OnModeChange(
    dbgmodeNew : DBGMODE
) : int

Parameters

Return Value

Type: System.Int32

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

Implements

IVsDebuggerEvents.OnModeChange(DBGMODE)

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.

Permissions

See Also

Reference

LanguageService Class

LanguageService Members

Microsoft.VisualStudio.Package Namespace