DkmClrNcInstructionSymbol.Create 方法

定义

创建新的 DkmClrNcInstructionSymbol 对象实例。

         此 API 是在 Visual Studio 15 Update 6 (VS15Update6) 中引入的。
public:
 static Microsoft::VisualStudio::Debugger::Clr::NativeCompilation::DkmClrNcInstructionSymbol ^ Create(Microsoft::VisualStudio::Debugger::Symbols::DkmModule ^ Module, Microsoft::VisualStudio::Debugger::Clr::DkmClrMethodId MethodId, System::UInt32 ILOffset, Guid LogicalMvid, System::UInt32 NativeOffset, System::Collections::ObjectModel::ReadOnlyCollection<System::Byte> ^ GenericParameters, int ReferenceToken);
public static Microsoft.VisualStudio.Debugger.Clr.NativeCompilation.DkmClrNcInstructionSymbol Create (Microsoft.VisualStudio.Debugger.Symbols.DkmModule Module, Microsoft.VisualStudio.Debugger.Clr.DkmClrMethodId MethodId, uint ILOffset, Guid LogicalMvid, uint NativeOffset, System.Collections.ObjectModel.ReadOnlyCollection<byte> GenericParameters, int ReferenceToken);
static member Create : Microsoft.VisualStudio.Debugger.Symbols.DkmModule * Microsoft.VisualStudio.Debugger.Clr.DkmClrMethodId * uint32 * Guid * uint32 * System.Collections.ObjectModel.ReadOnlyCollection<byte> * int -> Microsoft.VisualStudio.Debugger.Clr.NativeCompilation.DkmClrNcInstructionSymbol
Public Shared Function Create (Module As DkmModule, MethodId As DkmClrMethodId, ILOffset As UInteger, LogicalMvid As Guid, NativeOffset As UInteger, GenericParameters As ReadOnlyCollection(Of Byte), ReferenceToken As Integer) As DkmClrNcInstructionSymbol

参数

Module
DkmModule

中DkmModule 类表示 (ex: dll 或 exe) 的代码绑定,或将其加载到一个或多个进程中。 DkmModule 类是指向符号 Api 的中心对象,为1:1,并带有符号处理程序的表示形式。 如果代码绑定加载到三个不同的进程 (或相同的进程,但具有三个不同的基址或三个不同的应用程序域) 但符号处理程序认为所有这些都是相同的,则将只有一个 module 对象。

MethodId
DkmClrMethodId

中此方法的版本/标记对。

ILOffset
UInt32

中ILOffset 是此符号表示的 IL 指令的索引。 对于给定方法内的指令,此值可能设置为 UInt32,但不会绑定到特定指令。 这用于未映射到 IL 指令的 CLR 本机指令。

LogicalMvid
Guid

中定义 MethodId 的模块的 Mvid。

NativeOffset
UInt32

中此值是本机指令的 RVA,该指令来自包含此指令的本机模块的开头。

GenericParameters
ReadOnlyCollection<Byte>

[In,可选]对于泛型方法,这为每个泛型参数提供了 ECMA 格式的 TypeSpec 签名。 对于非泛型方法,此值将为 null。 对于非合并模块,此项相对于映射 (或伪 IL 程序集) 。

ReferenceToken
Int32

[In,可选]在多模块程序集中,MethodId 是解析为相应虚拟模块的方法标记。 此令牌可在伪程序集中查找。

返回

DkmClrNcInstructionSymbol

弄此方法调用的结果。

适用于