XamlObjectReader 构造函数

定义

初始化 XamlObjectReader 类的新实例。

重载

XamlObjectReader(Object)

初始化 XamlObjectReader 类的新实例。

XamlObjectReader(Object, XamlObjectReaderSettings)

使用指定的读取器设置初始化 XamlObjectReader 类的新实例。

XamlObjectReader(Object, XamlSchemaContext)

使用指定的架构上下文初始化 XamlObjectReader 类的新实例。

XamlObjectReader(Object, XamlSchemaContext, XamlObjectReaderSettings)

使用指定的架构上下文和读取器设置初始化 XamlObjectReader 类的新实例。

XamlObjectReader(Object)

初始化 XamlObjectReader 类的新实例。

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

参数

instance
Object

要读取的对象树/对象图的根。

注解

如果使用此构造函数进行初始化,则 XamlObjectReader 对象具有默认 XamlObjectReaderSettings 对象的初始设置和默认 XamlSchemaContext上下文的初始上下文。

适用于

XamlObjectReader(Object, XamlObjectReaderSettings)

使用指定的读取器设置初始化 XamlObjectReader 类的新实例。

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)

参数

instance
Object

要读取的对象树的根。

settings
XamlObjectReaderSettings

一个设置对象。

注解

设置对象指定读取器操作的规则,例如行号处理、错误处理行为等。 有关详细信息,请参阅 XamlObjectReaderSettings

如果使用此构造函数进行初始化,则 XamlObjectReader 对象具有默认 XamlSchemaContext上下文的初始上下文。

适用于

XamlObjectReader(Object, XamlSchemaContext)

使用指定的架构上下文初始化 XamlObjectReader 类的新实例。

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)

参数

instance
Object

要读取的对象树的根。

schemaContext
XamlSchemaContext

要使用的读取器的架构上下文。

例外

schemaContextnull

注解

如果使用此构造函数进行初始化,则对象 XamlObjectReader 具有默认 XamlObjectReaderSettings 对象的初始设置。

适用于

XamlObjectReader(Object, XamlSchemaContext, XamlObjectReaderSettings)

使用指定的架构上下文和读取器设置初始化 XamlObjectReader 类的新实例。

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)

参数

instance
Object

要读取的对象树的根。

schemaContext
XamlSchemaContext

要使用的读取器的架构上下文。

settings
XamlObjectReaderSettings

一个设置对象。

例外

schemaContextnull

注解

设置对象指定读取器操作的规则,例如行号处理和错误处理行为。 有关详细信息,请参阅 XamlObjectReaderSettings

适用于