XamlXmlReader 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 XamlXmlReader 类的新实例。
重载
XamlXmlReader(Stream)
基于流初始化类的新实例 XamlXmlReader 。
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)
参数
- stream
- Stream
要加载到读取器中的初始流。
例外
stream 是 null。
适用于
XamlXmlReader(XmlReader, XamlSchemaContext, XamlXmlReaderSettings)
使用提供的XamlXmlReader、架构上下文和读取器设置初始化类的新实例XmlReader。
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)
参数
- schemaContext
- XamlSchemaContext
XAML 处理的 XAML 架构上下文。
- settings
- XamlXmlReaderSettings
特定的 XAML 读取器设置。
例外
xmlReader 或 schemaContext 为 null.
注解
使用此构造函数初始化会尝试将提供的 xmlReader 一些设置与 XAML 特定的设置合并在一 settings起。 有关详细信息,请参阅 XamlXmlReaderSettings。
适用于
XamlXmlReader(String, XamlSchemaContext, XamlXmlReaderSettings)
根据要加载到默认 XML 读取器的文件名以及使用提供的 XAML 架构上下文和特定于 XAML 的读取器设置初始化类的新实例 XamlXmlReader 。
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)
参数
- fileName
- String
要加载的 XML 文件的名称。
- schemaContext
- XamlSchemaContext
XAML 处理的 XAML 架构上下文。
- settings
- XamlXmlReaderSettings
特定的读取器设置。
例外
注解
使用此构造函数初始化会尝试将默认读取器中的某些设置与 XAML 特定的设置合并在一 settings起。 有关详细信息,请参阅 XamlXmlReaderSettings。
适用于
XamlXmlReader(Stream, XamlSchemaContext, XamlXmlReaderSettings)
使用提供的 XAML 架构上下文和特定于 XAML 的设置,基于流初始化类的新实例 XamlXmlReader 。
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)
参数
- stream
- Stream
要加载到读取器中的初始流。
- schemaContext
- XamlSchemaContext
XAML 处理的 XAML 架构上下文。
- settings
- XamlXmlReaderSettings
特定的读取器设置。
例外
stream 或 schemaContext 为 null.
注解
使用此构造函数初始化会尝试将默认读取器中的某些设置与 XAML 特定的设置合并在一 settings起。 有关详细信息,请参阅 XamlXmlReaderSettings。
适用于
XamlXmlReader(XmlReader, XamlXmlReaderSettings)
使用提供的XamlXmlReader和读取器设置初始化类的新实例XmlReader。
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)
参数
- settings
- XamlXmlReaderSettings
特定的 XAML 读取器设置。
例外
xmlReader 或 settings 为 null.
注解
使用此构造函数初始化会尝试将提供的 xmlReader 一些设置与 XAML 特定的设置合并在一 settings起。 使用此构造函数初始化还会设置默认读取器设置。 有关详细信息,请参阅 XamlXmlReaderSettings。
适用于
XamlXmlReader(XmlReader, XamlSchemaContext)
使用提供的XamlXmlReader架构上下文初始化类的新实例XmlReader。
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)
参数
- schemaContext
- XamlSchemaContext
XAML 处理的 XAML 架构上下文。
例外
xmlReader 或 schemaContext 为 null.
注解
使用此构造函数初始化还会设置默认读取器设置。
适用于
XamlXmlReader(String, XamlXmlReaderSettings)
根据要加载到默认 XML 读取器中的文件的文件名以及使用特定于 XAML 的读取器设置初始化类的新实例 XamlXmlReader 。
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)
参数
- fileName
- String
要加载的 XML 文件的名称。
- settings
- XamlXmlReaderSettings
特定的读取器设置。
例外
fileName 是 null。
适用于
XamlXmlReader(String, XamlSchemaContext)
根据要加载到默认 XML 读取器的文件名(具有提供的 XAML 架构上下文)初始化类的新实例 XamlXmlReader 。
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)
参数
- fileName
- String
要加载的文件的名称。
- schemaContext
- XamlSchemaContext
XAML 处理的 XAML 架构上下文。
例外
fileName 或 schemaContext 为 null.
适用于
XamlXmlReader(TextReader, XamlSchemaContext, XamlXmlReaderSettings)
基于XamlXmlReader提供的架构上下文和特定于 XAML 的设置初始化类的新实例TextReader。
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)
参数
- textReader
- TextReader
TextReader用于初始化。
- schemaContext
- XamlSchemaContext
XAML 处理的 XAML 架构上下文。
- settings
- XamlXmlReaderSettings
特定的读取器设置。
例外
注解
使用此构造函数初始化会尝试将默认读取器中的某些设置与 XAML 特定的设置合并在一 settings起。 有关详细信息,请参阅 XamlXmlReaderSettings。
适用于
XamlXmlReader(TextReader, XamlSchemaContext)
使用XamlXmlReader提供的架构上下文和特定于 XAML 的设置初始化类的新实例TextReader。
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)
参数
- textReader
- TextReader
TextReader用于初始化。
- schemaContext
- XamlSchemaContext
XAML 处理的 XAML 架构上下文。
例外
适用于
XamlXmlReader(Stream, XamlXmlReaderSettings)
使用特定于 XAML 的设置根据流初始化类的新实例 XamlXmlReader 。
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)
参数
- stream
- Stream
要加载到读取器中的初始流。
- settings
- XamlXmlReaderSettings
特定的读取器设置。
例外
stream 是 null。
注解
使用此构造函数初始化会尝试将默认读取器中的某些设置与 XAML 特定的设置合并在一 settings起。 有关详细信息,请参阅 XamlXmlReaderSettings。
适用于
XamlXmlReader(Stream, XamlSchemaContext)
基于流并使用提供的 XAML 架构上下文初始化类的新实例 XamlXmlReader 。
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)
参数
- stream
- Stream
要加载到读取器中的初始流。
- schemaContext
- XamlSchemaContext
XAML 处理的 XAML 架构上下文。
例外
stream 或 schemaContext 为 null.
适用于
XamlXmlReader(XmlReader)
使用提供的XamlXmlReader类初始化新实例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)
参数
例外
xmlReader 是 null。
注解
使用此构造函数初始化还会设置默认的 XAML 架构上下文和默认读取器设置。
适用于
XamlXmlReader(TextReader, XamlXmlReaderSettings)
基于XamlXmlReader特定于 XAML 的设置初始化类的新实例TextReader。
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)
参数
- textReader
- TextReader
TextReader用于初始化。
- settings
- XamlXmlReaderSettings
特定的读取器设置。
例外
textReader 是 null。
注解
使用此构造函数初始化会尝试将默认读取器中的某些设置与 XAML 特定的设置合并在一 settings起。 有关详细信息,请参阅 XamlXmlReaderSettings。
适用于
XamlXmlReader(String)
根据要加载到默认 XML 读取器的文件名初始化类的新实例 XamlXmlReader 。
public:
XamlXmlReader(System::String ^ fileName);
public XamlXmlReader(string fileName);
new System.Xaml.XamlXmlReader : string -> System.Xaml.XamlXmlReader
Public Sub New (fileName As String)
参数
- fileName
- String
要加载的 XML 文件的名称。
例外
fileName 是 null。
适用于
XamlXmlReader(TextReader)
基于一个 XamlXmlReader. 初始化类的新实例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)
参数
- textReader
- TextReader
TextReader用于初始化。
例外
textReader 是 null。