共用方式為


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

設定物件。

備註

settings 物件會指定讀取器作業的規則,例如行號處理、錯誤處理行為等等。 如需詳細資訊,請參閱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

備註

settings 物件會指定讀取器作業的規則,例如行號處理和錯誤處理行為。 如需詳細資訊,請參閱XamlObjectReaderSettings

適用於