IDkmClrSymbolCallback.GetAsyncMethodCatchHandlerILOffset Method

Definition

Gets the optional starting IL offset of an async method's generated catch handler.

public:
 bool GetAsyncMethodCatchHandlerILOffset(Microsoft::VisualStudio::Debugger::Clr::DkmClrInstructionSymbol ^ clrInstruction, [Runtime::InteropServices::Out] System::UInt32 % catchHandlerILOffset);
public bool GetAsyncMethodCatchHandlerILOffset (Microsoft.VisualStudio.Debugger.Clr.DkmClrInstructionSymbol clrInstruction, out uint catchHandlerILOffset);
abstract member GetAsyncMethodCatchHandlerILOffset : Microsoft.VisualStudio.Debugger.Clr.DkmClrInstructionSymbol * uint32 -> bool
Public Function GetAsyncMethodCatchHandlerILOffset (clrInstruction As DkmClrInstructionSymbol, ByRef catchHandlerILOffset As UInteger) As Boolean

Parameters

clrInstruction
DkmClrInstructionSymbol

[In] DkmClrInstructionSymbol represents an IL instruction that runs under the Common Language Runtime (CLR) in the target process. This object contains the method version number. So in Edit-and-Continue scenarios, the instruction symbol would be different for different versions of the method. This object does not contain information about generic binding parameters. So different generic instantiations of a method (ex: MyMethod<string> and MyMethod<int>) are represented by the same instruction symbol since the CLR represents them with a single method token.

catchHandlerILOffset
UInt32

[Out] The catch handler's starting IL offset.

Returns

[Out] True if async method has a catch handler IL offset in the PDB.

Applies to