Modifica

Condividi tramite


XamlObjectReader Constructors

Definition

Initializes a new instance of the XamlObjectReader class.

Overloads

XamlObjectReader(Object)

Initializes a new instance of the XamlObjectReader class.

XamlObjectReader(Object, XamlObjectReaderSettings)

Initializes a new instance of the XamlObjectReader class with the specified reader settings.

XamlObjectReader(Object, XamlSchemaContext)

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

XamlObjectReader(Object, XamlSchemaContext, XamlObjectReaderSettings)

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

XamlObjectReader(Object)

Initializes a new instance of the XamlObjectReader class.

public:
 XamlObjectReader(System::Object ^ instance);
public XamlObjectReader (object instance);
new System.Xaml.XamlObjectReader : obj -> System.Xaml.XamlObjectReader
Public Sub New (instance As Object)

Parameters

instance
Object

The root of the object tree / object graph to read.

Remarks

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

Applies to

XamlObjectReader(Object, XamlObjectReaderSettings)

Initializes a new instance of the XamlObjectReader class with the specified reader settings.

public:
 XamlObjectReader(System::Object ^ instance, System::Xaml::XamlObjectReaderSettings ^ settings);
public XamlObjectReader (object instance, System.Xaml.XamlObjectReaderSettings settings);
new System.Xaml.XamlObjectReader : obj * System.Xaml.XamlObjectReaderSettings -> System.Xaml.XamlObjectReader
Public Sub New (instance As Object, settings As XamlObjectReaderSettings)

Parameters

instance
Object

The root of the object tree to read.

settings
XamlObjectReaderSettings

A settings object.

Remarks

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.

Applies to

XamlObjectReader(Object, XamlSchemaContext)

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

public:
 XamlObjectReader(System::Object ^ instance, System::Xaml::XamlSchemaContext ^ schemaContext);
public XamlObjectReader (object instance, System.Xaml.XamlSchemaContext schemaContext);
new System.Xaml.XamlObjectReader : obj * System.Xaml.XamlSchemaContext -> System.Xaml.XamlObjectReader
Public Sub New (instance As Object, schemaContext As XamlSchemaContext)

Parameters

instance
Object

The root of the object tree to read.

schemaContext
XamlSchemaContext

The schema context for the reader to use.

Exceptions

schemaContext is null.

Remarks

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

Applies to

XamlObjectReader(Object, XamlSchemaContext, XamlObjectReaderSettings)

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

public:
 XamlObjectReader(System::Object ^ instance, System::Xaml::XamlSchemaContext ^ schemaContext, System::Xaml::XamlObjectReaderSettings ^ settings);
public XamlObjectReader (object instance, System.Xaml.XamlSchemaContext schemaContext, System.Xaml.XamlObjectReaderSettings settings);
new System.Xaml.XamlObjectReader : obj * System.Xaml.XamlSchemaContext * System.Xaml.XamlObjectReaderSettings -> System.Xaml.XamlObjectReader
Public Sub New (instance As Object, schemaContext As XamlSchemaContext, settings As XamlObjectReaderSettings)

Parameters

instance
Object

The root of the object tree to read.

schemaContext
XamlSchemaContext

The schema context for the reader to use.

settings
XamlObjectReaderSettings

A settings object.

Exceptions

schemaContext is null.

Remarks

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

Applies to