다음을 통해 공유


LanguageService.OnModeChange Method

Called whenever the debug mode has changed while debugging.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

‘선언
Public Overridable Function OnModeChange ( _
    dbgmodeNew As DBGMODE _
) As Integer
public virtual int OnModeChange(
    DBGMODE dbgmodeNew
)

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.

.NET Framework Security

See Also

Reference

LanguageService Class

Microsoft.VisualStudio.Package Namespace