XamlObjectReader Constructor (Object, XamlObjectReaderSettings)

.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 XamlObjectReader class with the specified reader settings.

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

public XamlObjectReader(
	object instance,
	XamlObjectReaderSettings settings


Type: System.Object

The root of the object tree to read.

Type: System.Xaml.XamlObjectReaderSettings

A settings object.

The settings object specifies rules for reader operations, such as line number processing, error handling behavior, and so on. For more information, see XamlObjectReaderSettings.

If initialized with this constructor, the XamlObjectReader object has the initial context of a default XamlSchemaContext.

.NET Framework
Available since 4.0
Return to top