共用方式為


IVsLanguageDebugInfo2 Interface

Provides support for exception handlers in a language service.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

'宣告
<GuidAttribute("F1AF0080-C965-4E73-8763-3C6309707D59")> _
<InterfaceTypeAttribute()> _
Public Interface IVsLanguageDebugInfo2
[GuidAttribute("F1AF0080-C965-4E73-8763-3C6309707D59")]
[InterfaceTypeAttribute()]
public interface IVsLanguageDebugInfo2
[GuidAttribute(L"F1AF0080-C965-4E73-8763-3C6309707D59")]
[InterfaceTypeAttribute()]
public interface class IVsLanguageDebugInfo2
[<GuidAttribute("F1AF0080-C965-4E73-8763-3C6309707D59")>]
[<InterfaceTypeAttribute()>]
type IVsLanguageDebugInfo2 =  interface end
public interface IVsLanguageDebugInfo2

The IVsLanguageDebugInfo2 type exposes the following members.

Methods

  Name Description
Public method QueryCatchLineSpan Determines the span of the catch block in a try/catch exception handler for a specified location.
Public method QueryCommonLanguageBlock Determines whether the specified location is contained within a specified type of exception handler block.
Public method ValidateInstructionpointLocation Validates the given position as a place to set an instruction or break point.

Top

Remarks

This interface provides support for working with exception handlers in a language service. It can be used to locate a catch block, determine where a specified position is within a try/catch block, and validate a specified position for placing a breakpoint.

Notes to Implementers

This interface must be implemented on the same object that implements the IVsLanguageDebugInfo interface; typically, this is on the language service object itself.

Notes to Callers

Use this interface when you need detailed information about an exception handler in source code.

You can get this interface from the IVsLanguageDebugInfo interface by calling the QueryInterface method in unmanaged code or by casting the IVsLanguageDebugInfo interface to an IVsLanguageDebugInfo2 interface in managed code.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace