Click or drag to resize
XmlReaderCreate Method (XmlReader, XmlReaderSettings)
Creates a new XmlReader instance with the specified XmlReader and XmlReaderSettings objects.

Namespace: System.Xml
Assembly: CSharpXamlForHtml5.System.Xml.dll (in CSharpXamlForHtml5.System.Xml.dll.dll) Version: 1.0.0.0
Syntax
C#
public static XmlReader Create(
	XmlReader reader,
	XmlReaderSettings settings
)

Parameters

reader
Type: System.XmlXmlReader
The XmlReader object that you wish to use as the underlying reader.
settings
Type: System.XmlXmlReaderSettings
The XmlReaderSettings object used to configure the new XmlReader instance.The conformance level of the XmlReaderSettings object must either match the conformance level of the underlying reader, or it must be set to Auto.

Return Value

Type: XmlReader
An XmlReader object that is wrapped around the specified XmlReader object.
Exceptions
ExceptionCondition
ArgumentNullExceptionThe reader value is null.
InvalidOperationExceptionIf the XmlReaderSettings object specifies a conformance level that is not consistent with conformance level of the underlying reader.-or-The underlying XmlReader is in an Error or Closed state.
See Also