Export (0) Print
Expand All

XmlReaderSettings.LinePositionOffset Property

Gets or sets line position offset of the XmlReader object.

Namespace:  System.Xml
Assembly:  System.Xml (in System.Xml.dll)

member LinePositionOffset : int with get, set

Property Value

Type: System.Int32
The line position offset. The default is 0.

The LinePositionOffset setting determines the point where the 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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft