Sdílet prostřednictvím


DkmClrMethodId Struct

Definition

DkmClrMethodId is a token/version pair which is used to uniquely identify the symbol store's understanding of a particular CLR method within a module.

public value class DkmClrMethodId : IComparable<Microsoft::VisualStudio::Debugger::Clr::DkmClrMethodId>, IEquatable<Microsoft::VisualStudio::Debugger::Clr::DkmClrMethodId>
[System.Runtime.InteropServices.Guid("023de36c-0bd8-a8ac-b6d4-b1870aae7471")]
public struct DkmClrMethodId : IComparable<Microsoft.VisualStudio.Debugger.Clr.DkmClrMethodId>, IEquatable<Microsoft.VisualStudio.Debugger.Clr.DkmClrMethodId>
[<System.Runtime.InteropServices.Guid("023de36c-0bd8-a8ac-b6d4-b1870aae7471")>]
type DkmClrMethodId = struct
Public Structure DkmClrMethodId
Implements IComparable(Of DkmClrMethodId), IEquatable(Of DkmClrMethodId)
Inheritance
DkmClrMethodId
Attributes
Implements

Constructors

DkmClrMethodId(Int32, UInt32)

Initialize a new DkmClrMethodId value.

Fields

Token

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

Version

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.

Methods

CompareTo(DkmClrMethodId)
Equals(DkmClrMethodId)

Compare two elements of the DkmClrMethodId structure.

GetHashCode()

Operators

Equality(DkmClrMethodId, DkmClrMethodId)

Compare two elements of the DkmClrMethodId sructure.

GreaterThan(DkmClrMethodId, DkmClrMethodId)

Compare two elements of the DkmClrMethodId sructure.

GreaterThanOrEqual(DkmClrMethodId, DkmClrMethodId)

Compare two elements of the DkmClrMethodId sructure.

Inequality(DkmClrMethodId, DkmClrMethodId)

Compare two elements of the DkmClrMethodId sructure.

LessThan(DkmClrMethodId, DkmClrMethodId)

Compare two elements of the DkmClrMethodId sructure.

LessThanOrEqual(DkmClrMethodId, DkmClrMethodId)

Compare two elements of the DkmClrMethodId sructure.

Applies to