Share via


DkmClrMethodId(Int32, UInt32) Constructor

Definition

Initialize a new DkmClrMethodId value.

public:
 DkmClrMethodId(int Token, System::UInt32 Version);
public:
 DkmClrMethodId(int Token, unsigned int Version);
 DkmClrMethodId(int Token, unsigned int Version);
public DkmClrMethodId (int Token, uint Version);
new Microsoft.VisualStudio.Debugger.Clr.DkmClrMethodId : int * uint32 -> Microsoft.VisualStudio.Debugger.Clr.DkmClrMethodId
Public Sub New (Token As Integer, Version As UInteger)

Parameters

Token
Int32

[In] The method definition metadata token of the method that contains this symbol.

Version
UInt32

[In] Version is a 1-based index. This will be '1' for methods that have not been edited through Edit-and-continue. For edited methods, the version indicates the ENC apply of this method. Thus if the user does 5 ENC applies and a particular method is only edited in the 5th apply, then there are two method ids for this method, and they have Version=1 and Version=5.

The debugger needs to deal with old versions of the method because they will continue to be on the call stack until control is unwound. The debugger can also hit breakpoints or stop for exceptions within exception handling regions of old methods. In other words, if the user sets a breakpoint within the catch block of a non-leaf method, the debugger needs to set that breakpoint within the old version of the method.

In scenarios such as function breakpoint binding, the value '0' may used to indicate the current version of the method.

Applies to