XamlXmlReader Constructors

Definition

Initializes a new instance of the XamlXmlReader class.

Overloads

XamlXmlReader(Stream)

Initializes a new instance of the XamlXmlReader class, based on a stream.

XamlXmlReader(XmlReader, XamlSchemaContext, XamlXmlReaderSettings)

Initializes a new instance of the XamlXmlReader class using the provided XmlReader, schema context, and reader settings.

XamlXmlReader(String, XamlSchemaContext, XamlXmlReaderSettings)

Initializes a new instance of the XamlXmlReader class, based on the file name of a file to load into a default XML reader, and using a supplied XAML schema context and XAML-specific reader settings.

XamlXmlReader(Stream, XamlSchemaContext, XamlXmlReaderSettings)

Initializes a new instance of the XamlXmlReader class, based on a stream, with a supplied XAML schema context and XAML-specific settings.

XamlXmlReader(XmlReader, XamlXmlReaderSettings)

Initializes a new instance of the XamlXmlReader class, using the provided XmlReader and reader settings.

XamlXmlReader(XmlReader, XamlSchemaContext)

Initializes a new instance of the XamlXmlReader class using the provided XmlReader and schema context.

XamlXmlReader(String, XamlXmlReaderSettings)

Initializes a new instance of the XamlXmlReader class, based on the file name of a file to load into a default XML reader, and using XAML-specific reader settings.

XamlXmlReader(String, XamlSchemaContext)

Initializes a new instance of the XamlXmlReader class, based on the file name of a file to load into a default XML reader, with a supplied XAML schema context.

XamlXmlReader(TextReader, XamlSchemaContext, XamlXmlReaderSettings)

Initializes a new instance of the XamlXmlReader class, based on a TextReader, and using a supplied schema context and XAML-specific settings.

XamlXmlReader(TextReader, XamlSchemaContext)

Initializes a new instance of the XamlXmlReader class, based on a TextReader, with a supplied schema context and XAML-specific settings.

XamlXmlReader(Stream, XamlXmlReaderSettings)

Initializes a new instance of the XamlXmlReader class, based on a stream, with XAML-specific settings.

XamlXmlReader(Stream, XamlSchemaContext)

Initializes a new instance of the XamlXmlReader class, based on a stream, and using a supplied XAML schema context.

XamlXmlReader(XmlReader)

Initializes a new instance of the XamlXmlReader class using the provided XmlReader.

XamlXmlReader(TextReader, XamlXmlReaderSettings)

Initializes a new instance of the XamlXmlReader class, based on a TextReader, and using XAML-specific settings.

XamlXmlReader(String)

Initializes a new instance of the XamlXmlReader class, based on a file name of a file to load into a default XML reader.

XamlXmlReader(TextReader)

Initializes a new instance of the XamlXmlReader class, based on a TextReader.

XamlXmlReader(Stream)

Initializes a new instance of the XamlXmlReader class, based on a stream.

public XamlXmlReader(System.IO.Stream stream);

Parameters

stream
Stream

The initial stream to load into the reader.

Exceptions

stream is null.

Applies to

.NET Framework 4.8.1 a další verze
Produkt Verze
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

XamlXmlReader(XmlReader, XamlSchemaContext, XamlXmlReaderSettings)

Initializes a new instance of the XamlXmlReader class using the provided XmlReader, schema context, and reader settings.

public XamlXmlReader(System.Xml.XmlReader xmlReader, System.Xaml.XamlSchemaContext schemaContext, System.Xaml.XamlXmlReaderSettings settings);

Parameters

xmlReader
XmlReader

The XmlReader to use as the intermediary XML processor.

schemaContext
XamlSchemaContext

The XAML schema context for XAML processing.

settings
XamlXmlReaderSettings

The specific XAML reader settings.

Exceptions

xmlReader or schemaContext is null.

Remarks

Initializing with this constructor attempts to merge some of the settings from the provided xmlReader together with the XAML-specific settings in settings. For more information, see XamlXmlReaderSettings.

Applies to

.NET Framework 4.8.1 a další verze
Produkt Verze
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

XamlXmlReader(String, XamlSchemaContext, XamlXmlReaderSettings)

Initializes a new instance of the XamlXmlReader class, based on the file name of a file to load into a default XML reader, and using a supplied XAML schema context and XAML-specific reader settings.

public XamlXmlReader(string fileName, System.Xaml.XamlSchemaContext schemaContext, System.Xaml.XamlXmlReaderSettings settings);

Parameters

fileName
String

The name of the XML file to load.

schemaContext
XamlSchemaContext

The XAML schema context for XAML processing.

settings
XamlXmlReaderSettings

The specific reader settings.

Exceptions

fileName is null.

-or-

schemaContext is null.

Remarks

Initializing with this constructor attempts to merge some of the settings from the default reader together with the XAML-specific settings in settings. For more information, see XamlXmlReaderSettings.

Applies to

.NET Framework 4.8.1 a další verze
Produkt Verze
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

XamlXmlReader(Stream, XamlSchemaContext, XamlXmlReaderSettings)

Initializes a new instance of the XamlXmlReader class, based on a stream, with a supplied XAML schema context and XAML-specific settings.

public XamlXmlReader(System.IO.Stream stream, System.Xaml.XamlSchemaContext schemaContext, System.Xaml.XamlXmlReaderSettings settings);

Parameters

stream
Stream

The initial stream to load into the reader.

schemaContext
XamlSchemaContext

The XAML schema context for XAML processing.

settings
XamlXmlReaderSettings

The specific reader settings.

Exceptions

stream or schemaContext is null.

Remarks

Initializing with this constructor attempts to merge some of the settings from the default reader together with the XAML-specific settings in settings. For more information, see XamlXmlReaderSettings.

Applies to

.NET Framework 4.8.1 a další verze
Produkt Verze
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

XamlXmlReader(XmlReader, XamlXmlReaderSettings)

Initializes a new instance of the XamlXmlReader class, using the provided XmlReader and reader settings.

public XamlXmlReader(System.Xml.XmlReader xmlReader, System.Xaml.XamlXmlReaderSettings settings);

Parameters

xmlReader
XmlReader

The XmlReader to use as the intermediary XML processor.

settings
XamlXmlReaderSettings

The specific XAML reader settings.

Exceptions

xmlReader or settings is null.

Remarks

Initializing with this constructor attempts to merge some of the settings from the provided xmlReader together with the XAML-specific settings in settings. Initializing with this constructor also sets default reader settings. For more information, see XamlXmlReaderSettings.

Applies to

.NET Framework 4.8.1 a další verze
Produkt Verze
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

XamlXmlReader(XmlReader, XamlSchemaContext)

Initializes a new instance of the XamlXmlReader class using the provided XmlReader and schema context.

public XamlXmlReader(System.Xml.XmlReader xmlReader, System.Xaml.XamlSchemaContext schemaContext);

Parameters

xmlReader
XmlReader

The XmlReader to use as the intermediary XML processor.

schemaContext
XamlSchemaContext

The XAML schema context for XAML processing.

Exceptions

xmlReader or schemaContext is null.

Remarks

Initializing with this constructor also sets default reader settings.

Applies to

.NET Framework 4.8.1 a další verze
Produkt Verze
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

XamlXmlReader(String, XamlXmlReaderSettings)

Initializes a new instance of the XamlXmlReader class, based on the file name of a file to load into a default XML reader, and using XAML-specific reader settings.

public XamlXmlReader(string fileName, System.Xaml.XamlXmlReaderSettings settings);

Parameters

fileName
String

The name of the XML file to load.

settings
XamlXmlReaderSettings

The specific reader settings.

Exceptions

fileName is null.

Applies to

.NET Framework 4.8.1 a další verze
Produkt Verze
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

XamlXmlReader(String, XamlSchemaContext)

Initializes a new instance of the XamlXmlReader class, based on the file name of a file to load into a default XML reader, with a supplied XAML schema context.

public XamlXmlReader(string fileName, System.Xaml.XamlSchemaContext schemaContext);

Parameters

fileName
String

The name of the file to load.

schemaContext
XamlSchemaContext

The XAML schema context for XAML processing.

Exceptions

fileName or schemaContext is null.

Applies to

.NET Framework 4.8.1 a další verze
Produkt Verze
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

XamlXmlReader(TextReader, XamlSchemaContext, XamlXmlReaderSettings)

Initializes a new instance of the XamlXmlReader class, based on a TextReader, and using a supplied schema context and XAML-specific settings.

public XamlXmlReader(System.IO.TextReader textReader, System.Xaml.XamlSchemaContext schemaContext, System.Xaml.XamlXmlReaderSettings settings);

Parameters

textReader
TextReader

The TextReader to use for initialization.

schemaContext
XamlSchemaContext

The XAML schema context for XAML processing.

settings
XamlXmlReaderSettings

The specific reader settings.

Exceptions

textReader is null.

-or-

schemaContext is null.

Remarks

Initializing with this constructor attempts to merge some of the settings from the default reader together with the XAML-specific settings in settings. For more information, see XamlXmlReaderSettings.

Applies to

.NET Framework 4.8.1 a další verze
Produkt Verze
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

XamlXmlReader(TextReader, XamlSchemaContext)

Initializes a new instance of the XamlXmlReader class, based on a TextReader, with a supplied schema context and XAML-specific settings.

public XamlXmlReader(System.IO.TextReader textReader, System.Xaml.XamlSchemaContext schemaContext);

Parameters

textReader
TextReader

The TextReader to use for initialization.

schemaContext
XamlSchemaContext

The XAML schema context for XAML processing.

Exceptions

textReader is null.

-or-

schemaContext is null.

Applies to

.NET Framework 4.8.1 a další verze
Produkt Verze
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

XamlXmlReader(Stream, XamlXmlReaderSettings)

Initializes a new instance of the XamlXmlReader class, based on a stream, with XAML-specific settings.

public XamlXmlReader(System.IO.Stream stream, System.Xaml.XamlXmlReaderSettings settings);

Parameters

stream
Stream

The initial stream to load into the reader.

settings
XamlXmlReaderSettings

The specific reader settings.

Exceptions

stream is null.

Remarks

Initializing with this constructor attempts to merge some of the settings from the default reader together with the XAML-specific settings in settings. For more information, see XamlXmlReaderSettings.

Applies to

.NET Framework 4.8.1 a další verze
Produkt Verze
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

XamlXmlReader(Stream, XamlSchemaContext)

Initializes a new instance of the XamlXmlReader class, based on a stream, and using a supplied XAML schema context.

public XamlXmlReader(System.IO.Stream stream, System.Xaml.XamlSchemaContext schemaContext);

Parameters

stream
Stream

The initial stream to load into the reader.

schemaContext
XamlSchemaContext

The XAML schema context for XAML processing.

Exceptions

stream or schemaContext is null.

Applies to

.NET Framework 4.8.1 a další verze
Produkt Verze
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

XamlXmlReader(XmlReader)

Initializes a new instance of the XamlXmlReader class using the provided XmlReader.

public XamlXmlReader(System.Xml.XmlReader xmlReader);

Parameters

xmlReader
XmlReader

The XmlReader to use as the intermediary XML processor.

Exceptions

xmlReader is null.

Remarks

Initializing with this constructor also sets a default XAML schema context and default reader settings.

Applies to

.NET Framework 4.8.1 a další verze
Produkt Verze
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

XamlXmlReader(TextReader, XamlXmlReaderSettings)

Initializes a new instance of the XamlXmlReader class, based on a TextReader, and using XAML-specific settings.

public XamlXmlReader(System.IO.TextReader textReader, System.Xaml.XamlXmlReaderSettings settings);

Parameters

textReader
TextReader

The TextReader to use for initialization.

settings
XamlXmlReaderSettings

The specific reader settings.

Exceptions

textReader is null.

Remarks

Initializing with this constructor attempts to merge some of the settings from the default reader together with the XAML-specific settings in settings. For more information, see XamlXmlReaderSettings.

Applies to

.NET Framework 4.8.1 a další verze
Produkt Verze
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

XamlXmlReader(String)

Initializes a new instance of the XamlXmlReader class, based on a file name of a file to load into a default XML reader.

public XamlXmlReader(string fileName);

Parameters

fileName
String

The name of the XML file to load.

Exceptions

fileName is null.

Applies to

.NET Framework 4.8.1 a další verze
Produkt Verze
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

XamlXmlReader(TextReader)

Initializes a new instance of the XamlXmlReader class, based on a TextReader.

public XamlXmlReader(System.IO.TextReader textReader);

Parameters

textReader
TextReader

The TextReader to use for initialization.

Exceptions

textReader is null.

Applies to

.NET Framework 4.8.1 a další verze
Produkt Verze
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10