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 所指定。 每個數位特定索引處的每個元素都會對應至特定序列點。 每一行和每個數據行都會定義 方法內語句的開頭。 數位應該以位移的遞增順序排序。 位移一律是方法開頭的位移,以位元組為單位。

適用於