Bearbeiten

Freigeben über


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)

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

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

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

Applies to