XamlXmlReader Constructor (XmlReader, XamlSchemaContext)

.NET Framework 4.6 and 4.5

Initializes a new instance of the XamlXmlReader class using the provided XmlReader and schema context.

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

public XamlXmlReader(
	XmlReader xmlReader,
	XamlSchemaContext schemaContext
)

Parameters

xmlReader
Type: System.Xml.XmlReader

The XmlReader to use as the intermediary XML processor.

schemaContext
Type: System.Xaml.XamlSchemaContext

The XAML schema context for XAML processing.

ExceptionCondition
ArgumentNullException

xmlReader or schemaContext is null.

Initializing with this constructor also sets default reader settings.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft