XamlObjectWriter 构造函数

定义

初始化 XamlObjectWriter 类的新实例。Initializes a new instance of the XamlObjectWriter class.

重载

XamlObjectWriter(XamlSchemaContext)

使用 XamlObjectWriter 所用的 XAML 架构上下文初始化 XamlReader 类的新实例。Initializes a new instance of the XamlObjectWriter class using the XAML schema context that is used by a XamlReader.

XamlObjectWriter(XamlSchemaContext, XamlObjectWriterSettings)

使用 XamlObjectWriter 所用的上下文及其设置初始化 XamlReader 类的新实例。Initializes a new instance of the XamlObjectWriter class using the context that is used by a XamlReader and its settings.

XamlObjectWriter(XamlSchemaContext)

使用 XamlObjectWriter 所用的 XAML 架构上下文初始化 XamlReader 类的新实例。Initializes a new instance of the XamlObjectWriter class using the XAML schema context that is used by a XamlReader.

public:
 XamlObjectWriter(System::Xaml::XamlSchemaContext ^ schemaContext);
public XamlObjectWriter (System.Xaml.XamlSchemaContext schemaContext);
new System.Xaml.XamlObjectWriter : System.Xaml.XamlSchemaContext -> System.Xaml.XamlObjectWriter
Public Sub New (schemaContext As XamlSchemaContext)

参数

schemaContext
XamlSchemaContext

与 XAML 读取器共享的 XAML 架构上下文,该读取器提供节点用于编写。A XAML schema context that is shared with the XAML reader that provides nodes for writing.

例外

schemaContextnullschemaContext is null.

XamlObjectWriter(XamlSchemaContext, XamlObjectWriterSettings)

使用 XamlObjectWriter 所用的上下文及其设置初始化 XamlReader 类的新实例。Initializes a new instance of the XamlObjectWriter class using the context that is used by a XamlReader and its settings.

public:
 XamlObjectWriter(System::Xaml::XamlSchemaContext ^ schemaContext, System::Xaml::XamlObjectWriterSettings ^ settings);
public XamlObjectWriter (System.Xaml.XamlSchemaContext schemaContext, System.Xaml.XamlObjectWriterSettings settings);
new System.Xaml.XamlObjectWriter : System.Xaml.XamlSchemaContext * System.Xaml.XamlObjectWriterSettings -> System.Xaml.XamlObjectWriter
Public Sub New (schemaContext As XamlSchemaContext, settings As XamlObjectWriterSettings)

参数

schemaContext
XamlSchemaContext

与 XAML 读取器共享的 XAML 架构上下文,该读取器提供节点用于编写。A XAML schema context that is shared with the XAML reader that provides nodes for writing.

settings
XamlObjectWriterSettings

一个设置对象,该对象为 XamlObjectWriter 行为和输出指定某些选项。A settings object that specifies certain options for XamlObjectWriter behavior and output.

例外

schemaContextnullschemaContext is null.

适用于