SymWriter.DefineSequencePoints 方法

定义

在当前方法内定义一组序列点。

public:
 override void DefineSequencePoints(System::Diagnostics::SymbolStore::ISymbolDocumentWriter ^ document, cli::array <int> ^ offsets, cli::array <int> ^ lines, cli::array <int> ^ columns, cli::array <int> ^ endLines, cli::array <int> ^ endColumns);
public:
 virtual void DefineSequencePoints(System::Diagnostics::SymbolStore::ISymbolDocumentWriter ^ document, cli::array <int> ^ offsets, cli::array <int> ^ lines, cli::array <int> ^ columns, cli::array <int> ^ endLines, cli::array <int> ^ endColumns);
public override void DefineSequencePoints (System.Diagnostics.SymbolStore.ISymbolDocumentWriter document, int[] offsets, int[] lines, int[] columns, int[] endLines, int[] endColumns);
public virtual void DefineSequencePoints (System.Diagnostics.SymbolStore.ISymbolDocumentWriter document, int[] offsets, int[] lines, int[] columns, int[] endLines, int[] endColumns);
abstract member DefineSequencePoints : System.Diagnostics.SymbolStore.ISymbolDocumentWriter * int[] * int[] * int[] * int[] * int[] -> unit
override this.DefineSequencePoints : System.Diagnostics.SymbolStore.ISymbolDocumentWriter * int[] * int[] * int[] * int[] * int[] -> unit
Public Overrides Sub DefineSequencePoints (document As ISymbolDocumentWriter, offsets As Integer(), lines As Integer(), columns As Integer(), endLines As Integer(), endColumns As Integer())
Public Overridable Sub DefineSequencePoints (document As ISymbolDocumentWriter, offsets As Integer(), lines As Integer(), columns As Integer(), endLines As Integer(), endColumns As Integer())

参数

document
ISymbolDocumentWriter

正在为其定义序列点的文档对象。

offsets
Int32[]

从该方法的开头测量的序列点的 IL 偏移量。

lines
Int32[]

序列点的起始行号。

columns
Int32[]

序列点的起始列号。

endLines
Int32[]

序列点的结束行号。

endColumns
Int32[]

序列点的结束列号。

实现

注解

序列点用于在源文件位置和 IL 偏移量之间映射。 每个序列点都包含一个 IL 偏移量和源文件区域,由相对于对象的 ISymbolDocument 起始和结束行/列数指定。 每个数组的特定索引处的每个元素对应于特定的序列点。 每行和每列定义方法中语句的开头。 数组应按偏移量增加的顺序排序。 偏移量始终是方法开头的偏移量(以字节为单位)。

适用于