XmlTextReader.HasLineInfo 方法

定义

获取一个值,该值指示该类是否可返回行信息。Gets a value indicating whether the class can return line information.

public:
 virtual bool HasLineInfo();
public bool HasLineInfo ();
abstract member HasLineInfo : unit -> bool
override this.HasLineInfo : unit -> bool
Public Function HasLineInfo () As Boolean

返回

Boolean

如果该类可以返回行信息,则为 true;否则为 falsetrue if the class can return line information; otherwise, false.

实现

注解

备注

从 .NET Framework 2.0 开始,我们建议 XmlReader 使用方法创建实例 XmlReader.Create 以利用新功能。Starting with the .NET Framework 2.0, we recommend that you create XmlReader instances by using the XmlReader.Create method to take advantage of new functionality.

适用于

另请参阅