語言

XamlXmlWriter 建構函式

定義

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

多載

名稱 Description
XamlXmlWriter(Stream, XamlSchemaContext)

從串流初始化該 XamlXmlWriter 類別的新實例。

XamlXmlWriter(TextWriter, XamlSchemaContext)

從基XamlXmlWriter底初始化該類別的新實例TextWriter。

XamlXmlWriter(XmlWriter, XamlSchemaContext)

從基XamlXmlWriter底初始化該類別的新實例XmlWriter。

XamlXmlWriter(Stream, XamlSchemaContext, XamlXmlWriterSettings)

利用 writer settings 物件從串流初始化該類別的新實例 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 架構上下文。

例外狀況

stream 是 null。

-或-

schemaContext 是 null。

適用於

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 架構上下文。

例外狀況

textWriter 或 schemaContext 為 null。

適用於

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 架構上下文。

例外狀況

xmlWriter 或 schemaContext 為 null。

適用於

XamlXmlWriter(Stream, XamlSchemaContext, XamlXmlWriterSettings)

利用 writer settings 物件從串流初始化該類別的新實例 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實例,通常具有特定的非預設設定。

例外狀況

stream 或 schemaContext 為 null

備註

建構實例後settings,不要更改物件的任何XamlXmlWriter值。 XamlXmlWriter 無法根據執行時可變的設定值更新內部設定。 設定應該只提供初始化的設定。 你可以透過其中一個 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實例,通常具有特定的非預設設定。

例外狀況

textWriter 或 schemaContext 為 null。

備註

建構實例後settings,不要更改物件的任何XamlXmlWriter值。 XamlXmlWriter 無法根據執行時可變的設定值更新內部設定。 設定應該只提供初始化的設定。 你可以透過其中一個 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實例,通常具有特定的非預設設定。

例外狀況

xmlWriter 或 schemaContext 為 null。

備註

建構實例後settings,不要更改物件的任何XamlXmlWriter值。 XamlXmlWriter 無法根據執行時可變的設定值更新內部設定。 設定應該只提供初始化的設定。 你可以透過其中一個 XamlXmlWriterSettings 建構子簽章來合併活躍的 XAML 編譯器的設定;但你必須將這些設定套用到新的 XAML 寫入實例,而不是嘗試調整現有的實例。

適用於