XamlObjectReader Constructor (Object, XamlObjectReaderSettings)

.NET Framework (current version)
 

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
)

Parameters

instance
Type: System.Object

The root of the object tree to read.

settings
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
Show: