XmlSchema.Read 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
读取 XML 架构。
重载
| 名称 | 说明 |
|---|---|
| Read(Stream, ValidationEventHandler) |
从提供的流中读取 XML 架构。 |
| Read(TextReader, ValidationEventHandler) |
读取提供的 TextReaderXML 架构。 |
| Read(XmlReader, ValidationEventHandler) |
读取提供的 XmlReaderXML 架构。 |
Read(Stream, ValidationEventHandler)
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
从提供的流中读取 XML 架构。
public:
static System::Xml::Schema::XmlSchema ^ Read(System::IO::Stream ^ stream, System::Xml::Schema::ValidationEventHandler ^ validationEventHandler);
public static System.Xml.Schema.XmlSchema? Read(System.IO.Stream stream, System.Xml.Schema.ValidationEventHandler? validationEventHandler);
public static System.Xml.Schema.XmlSchema Read(System.IO.Stream stream, System.Xml.Schema.ValidationEventHandler validationEventHandler);
static member Read : System.IO.Stream * System.Xml.Schema.ValidationEventHandler -> System.Xml.Schema.XmlSchema
Public Shared Function Read (stream As Stream, validationEventHandler As ValidationEventHandler) As XmlSchema
参数
- stream
- Stream
提供的数据流。
- validationEventHandler
- ValidationEventHandler
接收有关 XML 架构语法错误的信息的验证事件处理程序。
返回
表示 XmlSchema XML 架构的对象。
例外
适用于
Read(TextReader, ValidationEventHandler)
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
读取提供的 TextReaderXML 架构。
public:
static System::Xml::Schema::XmlSchema ^ Read(System::IO::TextReader ^ reader, System::Xml::Schema::ValidationEventHandler ^ validationEventHandler);
public static System.Xml.Schema.XmlSchema? Read(System.IO.TextReader reader, System.Xml.Schema.ValidationEventHandler? validationEventHandler);
public static System.Xml.Schema.XmlSchema Read(System.IO.TextReader reader, System.Xml.Schema.ValidationEventHandler validationEventHandler);
static member Read : System.IO.TextReader * System.Xml.Schema.ValidationEventHandler -> System.Xml.Schema.XmlSchema
Public Shared Function Read (reader As TextReader, validationEventHandler As ValidationEventHandler) As XmlSchema
参数
- reader
- TextReader
TextReader包含要读取的 XML 架构。
- validationEventHandler
- ValidationEventHandler
接收有关 XML 架构语法错误的信息的验证事件处理程序。
返回
表示 XmlSchema XML 架构的对象。
例外
适用于
Read(XmlReader, ValidationEventHandler)
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
读取提供的 XmlReaderXML 架构。
public:
static System::Xml::Schema::XmlSchema ^ Read(System::Xml::XmlReader ^ reader, System::Xml::Schema::ValidationEventHandler ^ validationEventHandler);
public static System.Xml.Schema.XmlSchema? Read(System.Xml.XmlReader reader, System.Xml.Schema.ValidationEventHandler? validationEventHandler);
public static System.Xml.Schema.XmlSchema Read(System.Xml.XmlReader reader, System.Xml.Schema.ValidationEventHandler validationEventHandler);
static member Read : System.Xml.XmlReader * System.Xml.Schema.ValidationEventHandler -> System.Xml.Schema.XmlSchema
Public Shared Function Read (reader As XmlReader, validationEventHandler As ValidationEventHandler) As XmlSchema
参数
- reader
- XmlReader
XmlReader包含要读取的 XML 架构。
- validationEventHandler
- ValidationEventHandler
接收有关 XML 架构语法错误的信息的验证事件处理程序。
返回
表示 XmlSchema XML 架构的对象。