IVsLanguageDebugInfo2 Interface

Definition

Provides support for exception handlers in a language service.

public interface class IVsLanguageDebugInfo2
public interface class IVsLanguageDebugInfo2
__interface IVsLanguageDebugInfo2
[System.Runtime.InteropServices.Guid("F1AF0080-C965-4E73-8763-3C6309707D59")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsLanguageDebugInfo2
[System.Runtime.InteropServices.Guid("F1AF0080-C965-4E73-8763-3C6309707D59")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsLanguageDebugInfo2
[<System.Runtime.InteropServices.Guid("F1AF0080-C965-4E73-8763-3C6309707D59")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsLanguageDebugInfo2 = interface
[<System.Runtime.InteropServices.Guid("F1AF0080-C965-4E73-8763-3C6309707D59")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsLanguageDebugInfo2 = interface
Public Interface IVsLanguageDebugInfo2
Attributes

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.

Methods

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

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

QueryCommonLanguageBlock(IVsTextBuffer, Int32, Int32, UInt32, Int32)

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

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

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

Applies to