共用方式為


ParserError.Line 屬性

定義

取得或設定錯誤發生來源的線號。

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

屬性值

解析器遇到錯誤的來源行編號。

範例

以下程式碼範例示範如何填充 Line 物件的 ParserError 屬性。

MyParserError.Line = 5;
myParserError.Line = 5

備註

Line 屬性是該物件被拋出的檔案 ParserError 中的行號。

適用於