Share via


XamlXmlWriter 建構函式

定義

初始化 XamlXmlWriter 類別的新執行個體。

多載

XamlXmlWriter(Stream, XamlSchemaContext)

從資料流初始化 XamlXmlWriter 類別的新執行個體。

XamlXmlWriter(TextWriter, XamlSchemaContext)

XamlXmlWriter 基準初始化 TextWriter 類別的新執行個體。

XamlXmlWriter(XmlWriter, XamlSchemaContext)

XamlXmlWriter 基準初始化 XmlWriter 類別的新執行個體。

XamlXmlWriter(Stream, XamlSchemaContext, XamlXmlWriterSettings)

使用寫入器設定物件,從資料流初始化 XamlXmlWriter 類別的新執行個體。

XamlXmlWriter(TextWriter, XamlSchemaContext, XamlXmlWriterSettings)

使用設定物件,從 XamlXmlWriter 基準初始化 TextWriter 類別的新執行個體。

XamlXmlWriter(XmlWriter, XamlSchemaContext, XamlXmlWriterSettings)

使用設定物件,從 XamlXmlWriter 基準初始化 XmlWriter 類別的新執行個體。

XamlXmlWriter(Stream, XamlSchemaContext)

從資料流初始化 XamlXmlWriter 類別的新執行個體。

public:
 XamlXmlWriter(System::IO::Stream ^ stream, System::Xaml::XamlSchemaContext ^ schemaContext);
public XamlXmlWriter (System.IO.Stream stream, System.Xaml.XamlSchemaContext schemaContext);
new System.Xaml.XamlXmlWriter : System.IO.Stream * System.Xaml.XamlSchemaContext -> System.Xaml.XamlXmlWriter
Public Sub New (stream As Stream, schemaContext As XamlSchemaContext)

參數

stream
Stream

要寫入的資料流。

schemaContext
XamlSchemaContext

XAML 寫入器的 XAML 結構描述內容。

例外狀況

streamnull

-或- schemaContextnull

適用於

XamlXmlWriter(TextWriter, XamlSchemaContext)

XamlXmlWriter 基準初始化 TextWriter 類別的新執行個體。

public:
 XamlXmlWriter(System::IO::TextWriter ^ textWriter, System::Xaml::XamlSchemaContext ^ schemaContext);
public XamlXmlWriter (System.IO.TextWriter textWriter, System.Xaml.XamlSchemaContext schemaContext);
new System.Xaml.XamlXmlWriter : System.IO.TextWriter * System.Xaml.XamlSchemaContext -> System.Xaml.XamlXmlWriter
Public Sub New (textWriter As TextWriter, schemaContext As XamlSchemaContext)

參數

textWriter
TextWriter

寫入輸出的 TextWriter

schemaContext
XamlSchemaContext

XAML 寫入器的 XAML 結構描述內容。

例外狀況

textWriterschemaContextnull

適用於

XamlXmlWriter(XmlWriter, XamlSchemaContext)

XamlXmlWriter 基準初始化 XmlWriter 類別的新執行個體。

public:
 XamlXmlWriter(System::Xml::XmlWriter ^ xmlWriter, System::Xaml::XamlSchemaContext ^ schemaContext);
public XamlXmlWriter (System.Xml.XmlWriter xmlWriter, System.Xaml.XamlSchemaContext schemaContext);
new System.Xaml.XamlXmlWriter : System.Xml.XmlWriter * System.Xaml.XamlSchemaContext -> System.Xaml.XamlXmlWriter
Public Sub New (xmlWriter As XmlWriter, schemaContext As XamlSchemaContext)

參數

xmlWriter
XmlWriter

寫入輸出的 XmlWriter

schemaContext
XamlSchemaContext

XAML 寫入器的 XAML 結構描述內容。

例外狀況

xmlWriterschemaContextnull

適用於

XamlXmlWriter(Stream, XamlSchemaContext, XamlXmlWriterSettings)

使用寫入器設定物件,從資料流初始化 XamlXmlWriter 類別的新執行個體。

public:
 XamlXmlWriter(System::IO::Stream ^ stream, System::Xaml::XamlSchemaContext ^ schemaContext, System::Xaml::XamlXmlWriterSettings ^ settings);
public XamlXmlWriter (System.IO.Stream stream, System.Xaml.XamlSchemaContext schemaContext, System.Xaml.XamlXmlWriterSettings settings);
new System.Xaml.XamlXmlWriter : System.IO.Stream * System.Xaml.XamlSchemaContext * System.Xaml.XamlXmlWriterSettings -> System.Xaml.XamlXmlWriter
Public Sub New (stream As Stream, schemaContext As XamlSchemaContext, settings As XamlXmlWriterSettings)

參數

stream
Stream

要寫入的資料流。

schemaContext
XamlSchemaContext

XAML 寫入器的 XAML 結構描述內容。

settings
XamlXmlWriterSettings

XamlXmlWriterSettings 的執行個體,通常具有特定非預設設定。

例外狀況

streamschemaContextnull

備註

建構 實例之後 XamlXmlWriter ,請勿變更物件的任何值 settingsXamlXmlWriter 無法根據執行時間可變動的設定值來更新其內部設定。 應該只提供設定進行初始化。 您可以使用其中 XamlXmlWriterSettings 一個建構函式簽章,從作用中的 XAML 寫入器合併設定;不過,您必須將這些設定套用至新的 XAML 寫入器實例,而不是嘗試調整現有的設定。

適用於

XamlXmlWriter(TextWriter, XamlSchemaContext, XamlXmlWriterSettings)

使用設定物件,從 XamlXmlWriter 基準初始化 TextWriter 類別的新執行個體。

public:
 XamlXmlWriter(System::IO::TextWriter ^ textWriter, System::Xaml::XamlSchemaContext ^ schemaContext, System::Xaml::XamlXmlWriterSettings ^ settings);
public XamlXmlWriter (System.IO.TextWriter textWriter, System.Xaml.XamlSchemaContext schemaContext, System.Xaml.XamlXmlWriterSettings settings);
new System.Xaml.XamlXmlWriter : System.IO.TextWriter * System.Xaml.XamlSchemaContext * System.Xaml.XamlXmlWriterSettings -> System.Xaml.XamlXmlWriter
Public Sub New (textWriter As TextWriter, schemaContext As XamlSchemaContext, settings As XamlXmlWriterSettings)

參數

textWriter
TextWriter

寫入輸出的 TextWriter

schemaContext
XamlSchemaContext

XAML 寫入器的 XAML 結構描述內容。

settings
XamlXmlWriterSettings

XamlXmlWriterSettings 的執行個體,通常具有特定非預設設定。

例外狀況

textWriterschemaContextnull

備註

建構 實例之後 XamlXmlWriter ,請勿變更物件的任何值 settingsXamlXmlWriter 無法根據執行時間可變動的設定值來更新其內部設定。 應該只提供設定進行初始化。 您可以使用其中 XamlXmlWriterSettings 一個建構函式簽章,從作用中的 XAML 寫入器合併設定;不過,您必須將這些設定套用至新的 XAML 寫入器實例,而不是嘗試調整現有的設定。

適用於

XamlXmlWriter(XmlWriter, XamlSchemaContext, XamlXmlWriterSettings)

使用設定物件,從 XamlXmlWriter 基準初始化 XmlWriter 類別的新執行個體。

public:
 XamlXmlWriter(System::Xml::XmlWriter ^ xmlWriter, System::Xaml::XamlSchemaContext ^ schemaContext, System::Xaml::XamlXmlWriterSettings ^ settings);
public XamlXmlWriter (System.Xml.XmlWriter xmlWriter, System.Xaml.XamlSchemaContext schemaContext, System.Xaml.XamlXmlWriterSettings settings);
new System.Xaml.XamlXmlWriter : System.Xml.XmlWriter * System.Xaml.XamlSchemaContext * System.Xaml.XamlXmlWriterSettings -> System.Xaml.XamlXmlWriter
Public Sub New (xmlWriter As XmlWriter, schemaContext As XamlSchemaContext, settings As XamlXmlWriterSettings)

參數

xmlWriter
XmlWriter

寫入輸出的 XmlWriter

schemaContext
XamlSchemaContext

XAML 寫入器的 XAML 結構描述內容。

settings
XamlXmlWriterSettings

XamlXmlWriterSettings 的執行個體,通常具有特定非預設設定。

例外狀況

xmlWriterschemaContextnull

備註

建構 實例之後 XamlXmlWriter ,請勿變更物件的任何值 settingsXamlXmlWriter 無法根據執行時間可變動的設定值來更新其內部設定。 應該只提供設定進行初始化。 您可以使用其中 XamlXmlWriterSettings 一個建構函式簽章,從作用中的 XAML 寫入器合併設定;不過,您必須將這些設定套用至新的 XAML 寫入器實例,而不是嘗試調整現有的設定。

適用於