DkmScriptInstructionSymbol.Create 方法

定义

创建新的 DkmScriptInstructionSymbol 对象实例。

public:
 static Microsoft::VisualStudio::Debugger::Script::DkmScriptInstructionSymbol ^ Create(Microsoft::VisualStudio::Debugger::Symbols::DkmModule ^ Module, Guid RuntimeType, Microsoft::VisualStudio::Debugger::Script::DkmScriptDocument ^ Document, int Revision, int StartIndex, int StatementLength, System::Collections::ObjectModel::ReadOnlyCollection<System::Byte> ^ AdditionalData);
public static Microsoft.VisualStudio.Debugger.Script.DkmScriptInstructionSymbol Create (Microsoft.VisualStudio.Debugger.Symbols.DkmModule Module, Guid RuntimeType, Microsoft.VisualStudio.Debugger.Script.DkmScriptDocument Document, int Revision, int StartIndex, int StatementLength, System.Collections.ObjectModel.ReadOnlyCollection<byte> AdditionalData);
static member Create : Microsoft.VisualStudio.Debugger.Symbols.DkmModule * Guid * Microsoft.VisualStudio.Debugger.Script.DkmScriptDocument * int * int * int * System.Collections.ObjectModel.ReadOnlyCollection<byte> -> Microsoft.VisualStudio.Debugger.Script.DkmScriptInstructionSymbol
Public Shared Function Create (Module As DkmModule, RuntimeType As Guid, Document As DkmScriptDocument, Revision As Integer, StartIndex As Integer, StatementLength As Integer, AdditionalData As ReadOnlyCollection(Of Byte)) As DkmScriptInstructionSymbol

参数

Module
DkmModule

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

RuntimeType
Guid

中运行时 Id 标识特定代码段的执行环境。 调度程序使用运行时 Id 来决定要调度到的监视器。 请注意,运行时 ID Guid 的排序有点重要,因为这会指示在仲裁期间哪个运行时获取第一个快照。 因此,如果一个要声明在 CLR 上构建的新的运行时实例,则运行时 id 应小于 DkmRuntimeId。

Document
DkmScriptDocument

中包含此指令的文档。

Revision
Int32

中指示插入此对象所表示的语句的修订号。 通常,对于非动态文档,此值将为零。

StartIndex
Int32

中指示此语句的起始字符索引(相对于插入此语句的修订版本的开头)。

StatementLength
Int32

中语句的长度 (以字符) 。

AdditionalData
ReadOnlyCollection<Byte>

[In,可选]与某个地址相关联的其他特定于运行时的数据。 比较地址时将不使用此数据。

返回

DkmScriptInstructionSymbol

弄此方法调用的结果。

适用于