XmlSchema.Read Método

Definición

Lee un esquema XML.

Sobrecargas

Read(Stream, ValidationEventHandler)

Lee un esquema XML de la secuencia proporcionada.

Read(TextReader, ValidationEventHandler)

Lee un esquema XML del objeto TextReader proporcionado.

Read(XmlReader, ValidationEventHandler)

Lee un esquema XML del objeto XmlReader proporcionado.

Read(Stream, ValidationEventHandler)

Lee un esquema XML de la secuencia proporcionada.

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

Parámetros

stream
Stream

Flujo de datos suministrado.

validationEventHandler
ValidationEventHandler

Controlador de eventos de validación que recibe información acerca de los errores de sintaxis del esquema XML.

Devoluciones

XmlSchema

Objeto XmlSchema que representa el esquema XML.

Excepciones

Se produce una XmlSchemaException si no se especifica ningún ValidationEventHandler.

Se aplica a

Read(TextReader, ValidationEventHandler)

Lee un esquema XML del objeto TextReader proporcionado.

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

Parámetros

reader
TextReader

Objeto TextReader que contiene el esquema XML que se va a leer.

validationEventHandler
ValidationEventHandler

Controlador de eventos de validación que recibe información acerca de los errores de sintaxis del esquema XML.

Devoluciones

XmlSchema

Objeto XmlSchema que representa el esquema XML.

Excepciones

Se produce una XmlSchemaException si no se especifica ningún ValidationEventHandler.

Se aplica a

Read(XmlReader, ValidationEventHandler)

Lee un esquema XML del objeto XmlReader proporcionado.

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

Parámetros

reader
XmlReader

Objeto XmlReader que contiene el esquema XML que se va a leer.

validationEventHandler
ValidationEventHandler

Controlador de eventos de validación que recibe información acerca de los errores de sintaxis del esquema XML.

Devoluciones

XmlSchema

Objeto XmlSchema que representa el esquema XML.

Excepciones

Se produce una XmlSchemaException si no se especifica ningún ValidationEventHandler.

Se aplica a