Επεξεργασία

Κοινή χρήση μέσω


ILGenerator.MarkSequencePoint Method

Definition

Marks a sequence point in the Microsoft intermediate language (MSIL) stream.

public:
 void MarkSequencePoint(System::Diagnostics::SymbolStore::ISymbolDocumentWriter ^ document, int startLine, int startColumn, int endLine, int endColumn);
public:
 virtual void MarkSequencePoint(System::Diagnostics::SymbolStore::ISymbolDocumentWriter ^ document, int startLine, int startColumn, int endLine, int endColumn);
public void MarkSequencePoint (System.Diagnostics.SymbolStore.ISymbolDocumentWriter document, int startLine, int startColumn, int endLine, int endColumn);
public virtual void MarkSequencePoint (System.Diagnostics.SymbolStore.ISymbolDocumentWriter document, int startLine, int startColumn, int endLine, int endColumn);
member this.MarkSequencePoint : System.Diagnostics.SymbolStore.ISymbolDocumentWriter * int * int * int * int -> unit
abstract member MarkSequencePoint : System.Diagnostics.SymbolStore.ISymbolDocumentWriter * int * int * int * int -> unit
override this.MarkSequencePoint : System.Diagnostics.SymbolStore.ISymbolDocumentWriter * int * int * int * int -> unit
Public Sub MarkSequencePoint (document As ISymbolDocumentWriter, startLine As Integer, startColumn As Integer, endLine As Integer, endColumn As Integer)
Public Overridable Sub MarkSequencePoint (document As ISymbolDocumentWriter, startLine As Integer, startColumn As Integer, endLine As Integer, endColumn As Integer)

Parameters

document
ISymbolDocumentWriter

The document for which the sequence point is being defined.

startLine
Int32

The line where the sequence point begins.

startColumn
Int32

The column in the line where the sequence point begins.

endLine
Int32

The line where the sequence point ends.

endColumn
Int32

The column in the line where the sequence point ends.

Exceptions

startLine or endLine is <= 0.

document is null.

document is not valid.

Remarks

Line numbers are indexed from 1. Columns are indexed from 0.

The symbolic information normally includes at least one MSIL offset for each source line. When the just-in-time (JIT) compiler is about to compile a method, it asks the profiling services for a list of MSIL offsets that should be preserved. These MSIL offsets are called sequence points.

If the current ILGenerator is associated with a DynamicMethod object, it does not support symbolic information.

Applies to