System.Xml.XmlReaderSettings.LineNumberOffset Property

Gets or sets line number offset of the System.Xml.XmlReader object.

Syntax

public int LineNumberOffset { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

The XmlReaderSettings.LineNumberOffset setting determines the point where the IXmlLineInfo.LineNumber property starts counting. This is useful if your XML data is embedded within a larger document. For example, if your XML data were embedded in a larger document, and your data started on line 101 of the document, you may want to specify that the reader start at line 100. Therefore, if the reader threw an exception while parsing the first line of the XML, it would report the line number as line 101, rather than line 1.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0