Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

XmlSchema.Read Method

Definition

Namespace:
System.Xml.Schema
Assemblies:
netstandard.dll, System.Xml.ReaderWriter.dll
Assembly:
System.Xml.ReaderWriter.dll
Assembly:
System.Xml.dll
Assembly:
netstandard.dll

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

Name Description
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
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
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
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


Feedback

Was this page helpful?