DkmClrMethodId.Version Field

Definition

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.

public: initonly System::UInt32 Version;
public: initonly unsigned int Version;
initonly unsigned int Version;
public readonly uint Version;
val mutable Version : uint32
Public ReadOnly Version As UInteger 

Field Value

Applies to