XamlXmlWriter Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
- 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
- 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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기