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

屬性值

Int32

剖析器發生錯誤的來源行號。

範例

下列程式碼範例示範如何填入 Line 物件的 屬性 ParserError

MyParserError.Line = 5;
myParserError.Line = 5

備註

屬性 Line 是擲回這個 ParserError 物件之檔案內的行號。

適用於