XamlXmlReader Constructor (XmlReader, XamlXmlReaderSettings)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the XamlXmlReader class, using the provided XmlReader and reader settings.

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

public XamlXmlReader(
	XmlReader xmlReader,
	XamlXmlReaderSettings settings
)

Parameters

xmlReader
Type: System.Xml.XmlReader

The XmlReader to use as the intermediary XML processor.

settings
Type: System.Xaml.XamlXmlReaderSettings

The specific XAML reader settings.

Exception Condition
ArgumentNullException

xmlReader or schemaContext is null.

Initializing with this constructor attempts to merge some of the settings from the provided xmlReader together with the XAML-specific settings in settings. Initializing with this constructor also sets default reader settings. For more information, see XamlXmlReaderSettings.

.NET Framework
Available since 4.0
Return to top
Show: