ParserError.Line Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the line number of the source at which the error occurs.
public:
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.
Examples
The following code example demonstrates how to populate the Line property for a ParserError object.
MyParserError.Line = 5;
myParserError.Line = 5
Remarks
The Line property is the line number within the file at which this ParserError object was thrown.
Applies to
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.