XmlSchema.Read 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
讀取 XML 架構。
多載
| 名稱 | Description |
|---|---|
| Read(Stream, ValidationEventHandler) |
從所提供的串流讀取 XML 架構。 |
| Read(TextReader, ValidationEventHandler) |
從所提供的 TextReaderXML 架構讀取 。 |
| Read(XmlReader, ValidationEventHandler) |
從所提供的 XmlReaderXML 架構讀取 。 |
Read(Stream, ValidationEventHandler)
- 來源:
- XmlSchema.cs
- 來源:
- XmlSchema.cs
- 來源:
- XmlSchema.cs
- 來源:
- XmlSchema.cs
- 來源:
- 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 Schema 語法錯誤的資訊。
傳回
代表 XML 架構的 XmlSchema 物件。
例外狀況
若指定 noXmlSchemaException,則 A ValidationEventHandler 被提出。
適用於
Read(TextReader, ValidationEventHandler)
- 來源:
- XmlSchema.cs
- 來源:
- XmlSchema.cs
- 來源:
- XmlSchema.cs
- 來源:
- XmlSchema.cs
- 來源:
- 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 結構語法錯誤的資訊。
傳回
代表 XML 架構的 XmlSchema 物件。
例外狀況
若指定 noXmlSchemaException,則 A ValidationEventHandler 被提出。
適用於
Read(XmlReader, ValidationEventHandler)
- 來源:
- XmlSchema.cs
- 來源:
- XmlSchema.cs
- 來源:
- XmlSchema.cs
- 來源:
- XmlSchema.cs
- 來源:
- 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 結構語法錯誤的資訊。
傳回
代表 XML 架構的 XmlSchema 物件。
例外狀況
若指定 noXmlSchemaException,則 A ValidationEventHandler 被提出。