XamlObjectReader Constructor (Object, XamlSchemaContext)

.NET Framework (current version)
 

Initializes a new instance of the XamlObjectReader class with the specified schema context.

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

public XamlObjectReader(
	object instance,
	XamlSchemaContext schemaContext
)

Parameters

instance
Type: System.Object

The root of the object tree to read.

schemaContext
Type: System.Xaml.XamlSchemaContext

The schema context for the reader to use.

Exception Condition
ArgumentNullException

schemaContext is null.

If initialized with this constructor, the XamlObjectReader object has the initial settings of a default XamlObjectReaderSettings object.

.NET Framework
Available since 4.0
Return to top
Show: