SymMethod.GetSequencePoints 方法

定義

取得目前方法的序列點,並將資訊儲存在指定的陣列中。

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

參數

offsets
Int32[]

用來儲存從方法開頭之序列點 IL 位移的陣列。

documents
ISymbolDocument[]

陣列,用來儲存序列點所在的檔。

lines
Int32[]

用來儲存文件行的陣列,序列點位在這些文件中。

columns
Int32[]

用來儲存文件資料行的陣列,序列點位在這些文件中。

endLines
Int32[]

序列點結束處的文件行陣列。

endColumns
Int32[]

序列點結束處的文件欄陣列。

實作

備註

順序點可用來對應來源檔案位置和 IL 位移。 每個序列點都包含 IL 位移,以及相對於 物件的開始和結束行/資料行編號 ISymbolDocument 所指定的原始程式檔區域。 每個陣列之特定索引處的每個元素都會對應至特定的序列點。 呼叫端必須提供預先配置的數位,以保存要傳回的資訊。 會覆寫陣列中的任何值。 使用 SequencePointCount 擷取所有序列點的計數,並建立適當大小的陣列。 順序點會依位移排序,而且會針對 方法中的所有檔排序。 GetSequencePoints 會驗證每個數位的大小,並將序列點資訊放入每個數位中。 如果有任何陣列為 null,則不會傳回該陣列的數據。

適用於