다음을 통해 공유


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 (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
)
abstract OnModeChange : 
        dbgmodeNew:DBGMODE -> int 
override OnModeChange : 
        dbgmodeNew:DBGMODE -> int 
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.

.NET Framework Security

See Also

Reference

LanguageService Class

LanguageService Members

Microsoft.VisualStudio.Package Namespace