XmlReaderSettings.Reset Method

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

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

public void Reset()

The following table shows initial property values for an instance of XmlReaderSettings.

Property

Initial Value

Async

false.

CheckCharacters

true.

ConformanceLevel

Document.

IgnoreComments

false.

IgnoreProcessingInstructions

false.

IgnoreWhitespace

false.

LineNumberOffset

0.

LinePositionOffset

0.

MaxCharactersFromEntities

0 (there is no limit on the number of characters that result from expanding entities).

MaxCharactersInDocument

0 (there is no limit on the size of the XML document).

NameTable

null.

DtdProcessing

Prohibit

ProhibitDtd

true. This property is obsolete. Use DtdProcessing instead. If you had set ProhibitDtd to its default value true set DtdProcessing to Prohibit. If you had set ProhibitDtd to false set DtdProcessing to Parse.

Schemas

An empty XmlSchemaSet object.

ValidationFlags

ProcessIdentityConstraints.

ValidationType

None.

XmlResolver

A new XmlUrlResolver object.

.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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft