System.Xml.XmlReaderSettings.LinePositionOffset Property

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

Syntax

public int LinePositionOffset { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

The XmlReaderSettings.LinePositionOffset setting determines the point where the IXmlLineInfo.LinePosition property starts counting. This is useful if your XML data is embedded within a larger document and there is no new line at the beginning of the XML. In this case, if the reader throws an exception while parsing the XML, you want it to return the line position relative to the main document, not just relative to the XML fragment.

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