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)

[GuidAttribute("F1AF0080-C965-4E73-8763-3C6309707D59")]
[InterfaceTypeAttribute(1)]
public interface IVsLanguageDebugInfo2

NameDescription
System_CAPS_pubmethodQueryCatchLineSpan(IVsTextBuffer, Int32, Int32, Int32, TextSpan[])

Determines the span of the catch block in a try/catch exception handler for a specified location.

System_CAPS_pubmethodQueryCommonLanguageBlock(IVsTextBuffer, Int32, Int32, UInt32, Int32)

Determines whether the specified location is contained within a specified type of exception handler block.

System_CAPS_pubmethodValidateInstructionpointLocation(IVsTextBuffer, Int32, Int32, TextSpan[])

Validates the given position as a place to set an instruction or break point.

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.

Return to top
Show: