MalformedLineException.LineNumber 属性

定义

获取格式错误的行的行号。Gets the line number of the malformed line.

public:
 property long LineNumber { long get(); void set(long value); };
public long LineNumber { get; set; }
member this.LineNumber : int64 with get, set
Public Property LineNumber As Long

属性值

Int64

格式错误的行的行号。The line number of the malformed line.

注解

如果该 ReadFields 方法无法使用指定的格式分析行,则 MalformedLineException 会引发异常。If the ReadFields method cannot parse a row using the specified format, the MalformedLineException exception is thrown. 此异常包含格式不正确的行的行号。The exception contains the line number of the malformed line.

适用于

另请参阅