XmlSchema.Read Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reads an XML Schema.
Overloads
Read(Stream, ValidationEventHandler) |
Reads an XML Schema from the supplied stream. |
Read(TextReader, ValidationEventHandler) |
Reads an XML Schema from the supplied TextReader. |
Read(XmlReader, ValidationEventHandler) |
Reads an XML Schema from the supplied XmlReader. |
Read(Stream, ValidationEventHandler)
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
Reads an XML Schema from the supplied stream.
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
Parameters
- stream
- Stream
The supplied data stream.
- validationEventHandler
- ValidationEventHandler
The validation event handler that receives information about XML Schema syntax errors.
Returns
The XmlSchema object representing the XML Schema.
Exceptions
An XmlSchemaException is raised if no ValidationEventHandler is specified.
Applies to
Read(TextReader, ValidationEventHandler)
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
Reads an XML Schema from the supplied TextReader.
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
Parameters
- reader
- TextReader
The TextReader
containing the XML Schema to read.
- validationEventHandler
- ValidationEventHandler
The validation event handler that receives information about the XML Schema syntax errors.
Returns
The XmlSchema object representing the XML Schema.
Exceptions
An XmlSchemaException is raised if no ValidationEventHandler is specified.
Applies to
Read(XmlReader, ValidationEventHandler)
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
Reads an XML Schema from the supplied XmlReader.
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
Parameters
- reader
- XmlReader
The XmlReader
containing the XML Schema to read.
- validationEventHandler
- ValidationEventHandler
The validation event handler that receives information about the XML Schema syntax errors.
Returns
The XmlSchema object representing the XML Schema.
Exceptions
An XmlSchemaException is raised if no ValidationEventHandler is specified.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應