Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
NewLineHandling Enumeration
Collapse the table of content
Expand the table of content

NewLineHandling Enumeration

Specifies how to handle line breaks.

Namespace:  System.Xml
Assemblies:   System.Xml.ReaderWriter (in System.Xml.ReaderWriter.dll)
  System.Xml (in System.Xml.dll)

'Declaration
Public Enumeration NewLineHandling

Member nameDescription
Supported by the XNA FrameworkSupported by Portable Class LibraryEntitizeNew line characters are entitized. This setting preserves all characters when the output is read by a normalizing XmlReader.
Supported by the XNA FrameworkSupported by Portable Class LibraryNoneThe new line characters are unchanged. The output is the same as the input.
Supported by the XNA FrameworkSupported by Portable Class LibraryReplaceNew line characters are replaced to match the character specified in the NewLineChars property.

This enumeration is passed to the Create method to specify whether the XmlWriter object will normalize line breaks in the output.

See the NewLineHandling property to see a table detailing the behavior of each of the validation types.

.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

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
Show:
© 2015 Microsoft