XmlSchemaObject.LineNumber 属性

定义

获取或设置 schema 元素引用的文件中的行号。Gets or sets the line number in the file to which the schema element refers.

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

属性值

行号。The line number.

注解

在从文件读取架构时,LineNumber 用于存储行号。LineNumber is used to store the line number when a schema is read from a file. 此操作通过 XmlSchemaException 来报告错误处理。This is reported through XmlSchemaException for error handling.

适用于