ParserError.Line ParserError.Line ParserError.Line ParserError.Line Property


Gets or sets the line number of the source at which the error occurs.

 property int Line { int get(); void set(int value); };
public int Line { get; set; }
member this.Line : int with get, set
Public Property Line As Integer

Property Value

The source line number where the parser encountered the error.


The following code example demonstrates how to populate the Line property for a ParserError object.

MyParserError.Line = 5;
myParserError.Line = 5


The Line property is the line number within the file at which this ParserError object was thrown.

Applies to