Поделиться через


XmlWriterSettings.Reset Method

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

Resets the members of the settings class to their default values.

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

Syntax

'Declaration
Public Sub Reset
public void Reset()

Remarks

The following table shows the default property values for an instance of XmlWriterSettings.

Property

Initial value

CheckCharacters

true.

CloseOutput

false.

ConformanceLevel

Document.

Encoding

Encoding.UTF8.

Indent

false.

IndentChars

Two spaces.

NewLineChars

\r\n.

NewLineHandling

Replace.

NewLineOnAttributes

false.

OmitXmlDeclaration

false.

For more information and code examples, see XML Data.

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.