Επεξεργασία

Κοινή χρήση μέσω


XamlXmlWriter Constructors

Definition

Initializes a new instance of the XamlXmlWriter class.

Overloads

XamlXmlWriter(Stream, XamlSchemaContext)

Initializes a new instance of the XamlXmlWriter class from a stream.

XamlXmlWriter(TextWriter, XamlSchemaContext)

Initializes a new instance of the XamlXmlWriter class from a TextWriter basis.

XamlXmlWriter(XmlWriter, XamlSchemaContext)

Initializes a new instance of the XamlXmlWriter class from a XmlWriter basis.

XamlXmlWriter(Stream, XamlSchemaContext, XamlXmlWriterSettings)

Initializes a new instance of the XamlXmlWriter class from a stream using a writer settings object.

XamlXmlWriter(TextWriter, XamlSchemaContext, XamlXmlWriterSettings)

Initializes a new instance of the XamlXmlWriter class from a TextWriter basis using a settings object.

XamlXmlWriter(XmlWriter, XamlSchemaContext, XamlXmlWriterSettings)

Initializes a new instance of the XamlXmlWriter class from a XmlWriter basis using a settings object.

XamlXmlWriter(Stream, XamlSchemaContext)

Initializes a new instance of the XamlXmlWriter class from a stream.

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)

Parameters

stream
Stream

The stream to write.

schemaContext
XamlSchemaContext

The XAML schema context for the XAML writer.

Exceptions

stream is null.

-or-

schemaContext is null.

Applies to

XamlXmlWriter(TextWriter, XamlSchemaContext)

Initializes a new instance of the XamlXmlWriter class from a TextWriter basis.

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)

Parameters

textWriter
TextWriter

The TextWriter that writes the output.

schemaContext
XamlSchemaContext

The XAML schema context for the XAML writer.

Exceptions

textWriter or schemaContext is null.

Applies to

XamlXmlWriter(XmlWriter, XamlSchemaContext)

Initializes a new instance of the XamlXmlWriter class from a XmlWriter basis.

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)

Parameters

xmlWriter
XmlWriter

The XmlWriter that writes the output.

schemaContext
XamlSchemaContext

The XAML schema context for the XAML writer.

Exceptions

xmlWriter or schemaContext is null.

Applies to

XamlXmlWriter(Stream, XamlSchemaContext, XamlXmlWriterSettings)

Initializes a new instance of the XamlXmlWriter class from a stream using a writer settings object.

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)

Parameters

stream
Stream

The stream to write.

schemaContext
XamlSchemaContext

The XAML schema context for the XAML writer.

settings
XamlXmlWriterSettings

An instance of XamlXmlWriterSettings, which typically has specific non-default settings.

Exceptions

stream or schemaContext is null

Remarks

Do not change any values of the settings object after the XamlXmlWriter instance is constructed. XamlXmlWriter cannot update its internal settings based on settings values that are mutable at run time. Settings should be provided for initialization only. You can merge settings from an active XAML writer by using one of the XamlXmlWriterSettings constructor signatures; however, you must then apply these settings to a new XAML writer instance instead of attempting to adjust the existing one.

Applies to

XamlXmlWriter(TextWriter, XamlSchemaContext, XamlXmlWriterSettings)

Initializes a new instance of the XamlXmlWriter class from a TextWriter basis using a settings object.

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)

Parameters

textWriter
TextWriter

The TextWriter that writes the output.

schemaContext
XamlSchemaContext

The XAML schema context for the XAML writer.

settings
XamlXmlWriterSettings

An instance of XamlXmlWriterSettings, which typically has specific non-default settings.

Exceptions

textWriter or schemaContext is null.

Remarks

Do not change any values of the settings object after the XamlXmlWriter instance is constructed. XamlXmlWriter cannot update its internal settings based on settings values that are mutable at run time. Settings should be provided for initialization only. You can merge settings from an active XAML writer by using one of the XamlXmlWriterSettings constructor signatures; however, you must then apply these settings to a new XAML writer instance instead of attempting to adjust the existing one.

Applies to

XamlXmlWriter(XmlWriter, XamlSchemaContext, XamlXmlWriterSettings)

Initializes a new instance of the XamlXmlWriter class from a XmlWriter basis using a settings object.

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)

Parameters

xmlWriter
XmlWriter

The XmlWriter that writes the output.

schemaContext
XamlSchemaContext

The XAML schema context for the XAML writer.

settings
XamlXmlWriterSettings

An instance of XamlXmlWriterSettings, which typically has specific non-default settings.

Exceptions

xmlWriter or schemaContext is null.

Remarks

Do not change any values of the settings object after the XamlXmlWriter instance is constructed. XamlXmlWriter cannot update its internal settings based on settings values that are mutable at run time. Settings should be provided for initialization only. You can merge settings from an active XAML writer by using one of the XamlXmlWriterSettings constructor signatures; however, you must then apply these settings to a new XAML writer instance instead of attempting to adjust the existing one.

Applies to