XamlObjectReader Constructor (Object, XamlSchemaContext)

.NET Framework 4.6 and 4.5

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.

ExceptionCondition
ArgumentNullException

schemaContext is null.

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

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft