XmlSchema.Read Method

Definition

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)

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);
static member Read : System.IO.Stream * System.Xml.Schema.ValidationEventHandler -> System.Xml.Schema.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

Read(TextReader, ValidationEventHandler)

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);
static member Read : System.IO.TextReader * System.Xml.Schema.ValidationEventHandler -> System.Xml.Schema.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

Read(XmlReader, ValidationEventHandler)

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);
static member Read : System.Xml.XmlReader * System.Xml.Schema.ValidationEventHandler -> System.Xml.Schema.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

Applies to