XmlWriterSettings.Reset Method ()

 

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

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

public void Reset()

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

Property

Initial value

Async

false.

CheckCharacters

true.

CloseOutput

false.

ConformanceLevel

Document.

Encoding

Encoding.UTF8.

Indent

false.

IndentChars

Two spaces.

NewLineChars

\r\n.

NewLineHandling

Replace.

NewLineOnAttributes

false.

OmitXmlDeclaration

false.

WriteEndDocumentOnClose

true.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: