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 编写器实例,而不是尝试调整现有 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 编写器实例,而不是尝试调整现有 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 编写器实例,而不是尝试调整现有 XAML 编写器实例。

适用于