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 is 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)
参数
- schemaContext
- XamlSchemaContext
XAML 编写器的 XAML 架构上下文。
- settings
- XamlXmlWriterSettings
一个实例,该实例 XamlXmlWriterSettings通常具有特定的非默认设置。
例外
xmlWriter 或 schemaContext 为 null.
注解
构造实例后settings,请勿更改对象的任何值XamlXmlWriter。
XamlXmlWriter 无法根据运行时可变的设置值更新其内部设置。 应仅为初始化提供设置。 可以使用构造函数签名之一 XamlXmlWriterSettings 从活动 XAML 编写器合并设置;但是,必须将这些设置应用到新的 XAML 编写器实例,而不是尝试调整现有实例。