編輯

共用方式為


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);
public XamlXmlReader (System.IO.Stream stream);
new System.Xaml.XamlXmlReader : System.IO.Stream -> System.Xaml.XamlXmlReader
Public Sub New (stream As Stream)

Parameters

stream
Stream

The initial stream to load into the reader.

Exceptions

stream is null.

Applies to

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);
public XamlXmlReader (System.Xml.XmlReader xmlReader, System.Xaml.XamlSchemaContext schemaContext, System.Xaml.XamlXmlReaderSettings settings);
new System.Xaml.XamlXmlReader : System.Xml.XmlReader * System.Xaml.XamlSchemaContext * System.Xaml.XamlXmlReaderSettings -> System.Xaml.XamlXmlReader
Public Sub New (xmlReader As XmlReader, schemaContext As XamlSchemaContext, settings As XamlXmlReaderSettings)

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

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(System::String ^ fileName, System::Xaml::XamlSchemaContext ^ schemaContext, System::Xaml::XamlXmlReaderSettings ^ settings);
public XamlXmlReader (string fileName, System.Xaml.XamlSchemaContext schemaContext, System.Xaml.XamlXmlReaderSettings settings);
new System.Xaml.XamlXmlReader : string * System.Xaml.XamlSchemaContext * System.Xaml.XamlXmlReaderSettings -> System.Xaml.XamlXmlReader
Public Sub New (fileName As String, schemaContext As XamlSchemaContext, settings As XamlXmlReaderSettings)

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

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);
public XamlXmlReader (System.IO.Stream stream, System.Xaml.XamlSchemaContext schemaContext, System.Xaml.XamlXmlReaderSettings settings);
new System.Xaml.XamlXmlReader : System.IO.Stream * System.Xaml.XamlSchemaContext * System.Xaml.XamlXmlReaderSettings -> System.Xaml.XamlXmlReader
Public Sub New (stream As Stream, schemaContext As XamlSchemaContext, settings As XamlXmlReaderSettings)

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

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);
public XamlXmlReader (System.Xml.XmlReader xmlReader, System.Xaml.XamlXmlReaderSettings settings);
new System.Xaml.XamlXmlReader : System.Xml.XmlReader * System.Xaml.XamlXmlReaderSettings -> System.Xaml.XamlXmlReader
Public Sub New (xmlReader As XmlReader, settings As XamlXmlReaderSettings)

Parameters

xmlReader
XmlReader

The XmlReader to use as the intermediary XML processor.

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. Initializing with this constructor also sets default reader settings. For more information, see XamlXmlReaderSettings.

Applies to

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);
public XamlXmlReader (System.Xml.XmlReader xmlReader, System.Xaml.XamlSchemaContext schemaContext);
new System.Xaml.XamlXmlReader : System.Xml.XmlReader * System.Xaml.XamlSchemaContext -> System.Xaml.XamlXmlReader
Public Sub New (xmlReader As XmlReader, schemaContext As XamlSchemaContext)

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

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(System::String ^ fileName, System::Xaml::XamlXmlReaderSettings ^ settings);
public XamlXmlReader (string fileName, System.Xaml.XamlXmlReaderSettings settings);
new System.Xaml.XamlXmlReader : string * System.Xaml.XamlXmlReaderSettings -> System.Xaml.XamlXmlReader
Public Sub New (fileName As String, settings As XamlXmlReaderSettings)

Parameters

fileName
String

The name of the XML file to load.

settings
XamlXmlReaderSettings

The specific reader settings.

Exceptions

fileName is null.

Applies to

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(System::String ^ fileName, System::Xaml::XamlSchemaContext ^ schemaContext);
public XamlXmlReader (string fileName, System.Xaml.XamlSchemaContext schemaContext);
new System.Xaml.XamlXmlReader : string * System.Xaml.XamlSchemaContext -> System.Xaml.XamlXmlReader
Public Sub New (fileName As String, schemaContext As XamlSchemaContext)

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

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);
public XamlXmlReader (System.IO.TextReader textReader, System.Xaml.XamlSchemaContext schemaContext, System.Xaml.XamlXmlReaderSettings settings);
new System.Xaml.XamlXmlReader : System.IO.TextReader * System.Xaml.XamlSchemaContext * System.Xaml.XamlXmlReaderSettings -> System.Xaml.XamlXmlReader
Public Sub New (textReader As TextReader, schemaContext As XamlSchemaContext, settings As XamlXmlReaderSettings)

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

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);
public XamlXmlReader (System.IO.TextReader textReader, System.Xaml.XamlSchemaContext schemaContext);
new System.Xaml.XamlXmlReader : System.IO.TextReader * System.Xaml.XamlSchemaContext -> System.Xaml.XamlXmlReader
Public Sub New (textReader As TextReader, schemaContext As XamlSchemaContext)

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

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);
public XamlXmlReader (System.IO.Stream stream, System.Xaml.XamlXmlReaderSettings settings);
new System.Xaml.XamlXmlReader : System.IO.Stream * System.Xaml.XamlXmlReaderSettings -> System.Xaml.XamlXmlReader
Public Sub New (stream As Stream, settings As XamlXmlReaderSettings)

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

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);
public XamlXmlReader (System.IO.Stream stream, System.Xaml.XamlSchemaContext schemaContext);
new System.Xaml.XamlXmlReader : System.IO.Stream * System.Xaml.XamlSchemaContext -> System.Xaml.XamlXmlReader
Public Sub New (stream As Stream, schemaContext As XamlSchemaContext)

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

XamlXmlReader(XmlReader)

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

public:
 XamlXmlReader(System::Xml::XmlReader ^ xmlReader);
public XamlXmlReader (System.Xml.XmlReader xmlReader);
new System.Xaml.XamlXmlReader : System.Xml.XmlReader -> System.Xaml.XamlXmlReader
Public Sub New (xmlReader As 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

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);
public XamlXmlReader (System.IO.TextReader textReader, System.Xaml.XamlXmlReaderSettings settings);
new System.Xaml.XamlXmlReader : System.IO.TextReader * System.Xaml.XamlXmlReaderSettings -> System.Xaml.XamlXmlReader
Public Sub New (textReader As TextReader, settings As XamlXmlReaderSettings)

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

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(System::String ^ fileName);
public XamlXmlReader (string fileName);
new System.Xaml.XamlXmlReader : string -> System.Xaml.XamlXmlReader
Public Sub New (fileName As String)

Parameters

fileName
String

The name of the XML file to load.

Exceptions

fileName is null.

Applies to

XamlXmlReader(TextReader)

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

public:
 XamlXmlReader(System::IO::TextReader ^ textReader);
public XamlXmlReader (System.IO.TextReader textReader);
new System.Xaml.XamlXmlReader : System.IO.TextReader -> System.Xaml.XamlXmlReader
Public Sub New (textReader As TextReader)

Parameters

textReader
TextReader

The TextReader to use for initialization.

Exceptions

textReader is null.

Applies to