SymMethod.GetSequencePoints(Int32[], ISymbolDocument[], Int32[], Int32[], Int32[], Int32[]) 方法

定義

取得目前方法的序列點,並將資訊儲存在指定的陣列中。Gets the sequence points for the current method and stores the information in the specified arrays.

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 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 Overridable Sub GetSequencePoints (offsets As Integer(), documents As ISymbolDocument(), lines As Integer(), columns As Integer(), endLines As Integer(), endColumns As Integer())

參數

offsets
Int32[]

用來儲存從方法開頭之序列點 IL 位移的陣列。An array in which to store the IL offsets from the beginning of the method for the sequence points.

documents
ISymbolDocument[]

用來儲存文件的陣列,序列點位在這些文件中。An array in which to store the documents in which the sequence points are located.

lines
Int32[]

用來儲存文件行的陣列,序列點位在這些文件中。An array in which to store the lines in the documents at which the sequence points are located.

columns
Int32[]

用來儲存文件中資料行的陣列,序列點位在這些文件中。An array in which to store the columns in the documents at which the sequence points are located.

endLines
Int32[]

序列點結束的文件中的行陣列。The array of lines in the documents at which the sequence points end.

endColumns
Int32[]

序列點結束的文件中的欄陣列。The array of columns in the documents at which the sequence points end.

實作

備註

序列點是用來在來源檔案位置和 IL 位移之間進行對應。Sequence points are used to map between source file locations and IL offsets. 每個序列點都包含 IL 位移,以及相對於ISymbolDocument物件的開始和結束行/欄號所指定的來源檔案區域。Each sequence point consists of an IL offset, and source file region specified by start and end line/column numbers relative to an ISymbolDocument object. 每個陣列之特定索引處的每個專案都會對應到特定的序列點。Each element at a specific index of every array corresponds to a specific sequence point. 呼叫端必須提供預先配置的陣列,以保存要傳回的資訊。The caller must supply pre-allocated arrays to hold the information to be returned. 系統會覆寫陣列中的任何值。Any values in the arrays are overwritten. 使用SequencePointCount來取出所有序列點的計數,並建立適當大小的陣列。Use SequencePointCount to retrieve the count of all sequence points and create arrays of the proper size. 順序點會依位移排序,並適用于方法中的所有檔。The sequence points are sorted by offset and are for all documents in the method. GetSequencePoints驗證每個陣列的大小,並將順序點資訊放入每個陣列。GetSequencePoints verifies the size of each array and places the sequence point information into each. 如果有任何陣列null為,則不會傳回該陣列的資料。If any array is null, the data for that array is not returned.

適用於