Share via


ISymbolWriter.SetMethodSourceRange 方法

定義

指定原始程式檔內方法的實際開頭和結尾。 使用 SetMethodSourceRange(ISymbolDocumentWriter, Int32, Int32, ISymbolDocumentWriter, Int32, Int32) 來指定方法的範圍,以及存在於方法內的獨立序列點。

public:
 void SetMethodSourceRange(System::Diagnostics::SymbolStore::ISymbolDocumentWriter ^ startDoc, int startLine, int startColumn, System::Diagnostics::SymbolStore::ISymbolDocumentWriter ^ endDoc, int endLine, int endColumn);
public void SetMethodSourceRange (System.Diagnostics.SymbolStore.ISymbolDocumentWriter startDoc, int startLine, int startColumn, System.Diagnostics.SymbolStore.ISymbolDocumentWriter endDoc, int endLine, int endColumn);
abstract member SetMethodSourceRange : System.Diagnostics.SymbolStore.ISymbolDocumentWriter * int * int * System.Diagnostics.SymbolStore.ISymbolDocumentWriter * int * int -> unit
Public Sub SetMethodSourceRange (startDoc As ISymbolDocumentWriter, startLine As Integer, startColumn As Integer, endDoc As ISymbolDocumentWriter, endLine As Integer, endColumn As Integer)

參數

startDoc
ISymbolDocumentWriter

包含開始位置的文件。

startLine
Int32

開始的行號。

startColumn
Int32

開始的欄。

endDoc
ISymbolDocumentWriter

包含結束位置的文件。

endLine
Int32

結束的行號。

endColumn
Int32

結束的欄號。

適用於