XamlXmlWriter 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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 架构上下文。
例外
适用于
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)
参数
- schemaContext
- XamlSchemaContext
XAML 编写器的 XAML 架构上下文。
例外
xmlWriter
或 schemaContext
为 null
。
适用于
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 的实例,此实例通常具有特定的非默认设置。
例外
stream
或 schemaContext
为 null
注解
构造实例后XamlXmlWriter,请勿更改对象的任何值settings
。 XamlXmlWriter 不能根据运行时可变的设置值更新其内部设置。 应仅为初始化提供设置。 可以使用构造函数签名之一 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 的实例,此实例通常具有特定的非默认设置。
例外
textWriter
或 schemaContext
为 null
。
注解
构造实例后XamlXmlWriter,请勿更改对象的任何值settings
。 XamlXmlWriter 不能根据运行时可变的设置值更新其内部设置。 应仅为初始化提供设置。 可以使用构造函数签名之一 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)
参数
- schemaContext
- XamlSchemaContext
XAML 编写器的 XAML 架构上下文。
- settings
- XamlXmlWriterSettings
XamlXmlWriterSettings 的实例,此实例通常具有特定的非默认设置。
例外
xmlWriter
或 schemaContext
为 null
。
注解
构造实例后XamlXmlWriter,请勿更改对象的任何值settings
。 XamlXmlWriter 不能根据运行时可变的设置值更新其内部设置。 应仅为初始化提供设置。 可以使用构造函数签名之一 XamlXmlWriterSettings 从活动 XAML 编写器合并设置;但是,必须将这些设置应用到新的 XAML 编写器实例,而不是尝试调整现有 XAML 编写器实例。