XamlXmlReader Constructor (String, XamlSchemaContext, XamlXmlReaderSettings)

.NET Framework (current version)

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, based on the file name of a file to load into a default XML reader, and using a supplied XAML schema context and XAML-specific reader settings.

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

public XamlXmlReader(
	string fileName,
	XamlSchemaContext schemaContext,
	XamlXmlReaderSettings settings


Type: System.String

The name of the XML file to load.

Type: System.Xaml.XamlSchemaContext

The XAML schema context for XAML processing.

Type: System.Xaml.XamlXmlReaderSettings

The specific reader settings.

Exception Condition

fileName is null.


schemaContext is null.

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

.NET Framework
Available since 4.0
Return to top