XmlSchema.Read Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Lit un schéma XML.
Surcharges
| Nom | Description |
|---|---|
| Read(Stream, ValidationEventHandler) |
Lit un schéma XML à partir du flux fourni. |
| Read(TextReader, ValidationEventHandler) |
Lit un schéma XML à partir du schéma fourni TextReader. |
| Read(XmlReader, ValidationEventHandler) |
Lit un schéma XML à partir du schéma fourni XmlReader. |
Read(Stream, ValidationEventHandler)
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
Lit un schéma XML à partir du flux fourni.
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
Paramètres
- stream
- Stream
Flux de données fourni.
- validationEventHandler
- ValidationEventHandler
Gestionnaire d’événements de validation qui reçoit des informations sur les erreurs de syntaxe de schéma XML.
Retours
Objet XmlSchema représentant le schéma XML.
Exceptions
Un XmlSchemaException élément est déclenché si aucun n’est ValidationEventHandler spécifié.
S’applique à
Read(TextReader, ValidationEventHandler)
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
Lit un schéma XML à partir du schéma fourni 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
Paramètres
- reader
- TextReader
TextReader Contenant le schéma XML à lire.
- validationEventHandler
- ValidationEventHandler
Gestionnaire d’événements de validation qui reçoit des informations sur les erreurs de syntaxe de schéma XML.
Retours
Objet XmlSchema représentant le schéma XML.
Exceptions
Un XmlSchemaException élément est déclenché si aucun n’est ValidationEventHandler spécifié.
S’applique à
Read(XmlReader, ValidationEventHandler)
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
- Source:
- XmlSchema.cs
Lit un schéma XML à partir du schéma fourni 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
Paramètres
- reader
- XmlReader
XmlReader Contenant le schéma XML à lire.
- validationEventHandler
- ValidationEventHandler
Gestionnaire d’événements de validation qui reçoit des informations sur les erreurs de syntaxe de schéma XML.
Retours
Objet XmlSchema représentant le schéma XML.
Exceptions
Un XmlSchemaException élément est déclenché si aucun n’est ValidationEventHandler spécifié.