次の方法で共有


NewLineHandling Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Specifies how to handle line breaks.

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

Syntax

'Declaration
Public Enumeration NewLineHandling
public enum NewLineHandling

Members

Member name Description
Supported by Silverlight for Windows PhoneSupported by Xbox 360 Replace New line characters are replaced to match the character specified in the NewLineChars property.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 Entitize New line characters are entitized. This setting preserves all characters when the output is read by a normalizing XmlReader.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 None The new line characters are unchanged. The output is the same as the input.

Remarks

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 validation type.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference