XmlSchemaException Constructeurs
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.
Diffuse toutes les XmlSchemaException propriétés dans la SerializationInfo classe pour l’élément donné StreamingContext.
Surcharges
| Nom | Description |
|---|---|
| XmlSchemaException() |
Initialise une nouvelle instance de la classe XmlSchemaException. |
| XmlSchemaException(String) |
Initialise une nouvelle instance de la XmlSchemaException classe avec le message d’exception spécifié. |
| XmlSchemaException(SerializationInfo, StreamingContext) |
Obsolète.
Construit un nouvel |
| XmlSchemaException(String, Exception) |
Initialise une nouvelle instance de la XmlSchemaException classe avec le message d’exception et l’objet d’origine Exception qui a provoqué cette exception spécifiée. |
| XmlSchemaException(String, Exception, Int32, Int32) |
Initialise une nouvelle instance de la XmlSchemaException classe avec le message d’exception spécifié, ainsi que l’objet d’origine Exception , le numéro de ligne et la position de ligne du XML qui provoque cette exception spécifiée. |
XmlSchemaException()
- Source:
- XmlSchemaException.cs
- Source:
- XmlSchemaException.cs
- Source:
- XmlSchemaException.cs
- Source:
- XmlSchemaException.cs
- Source:
- XmlSchemaException.cs
Initialise une nouvelle instance de la classe XmlSchemaException.
public:
XmlSchemaException();
public XmlSchemaException();
Public Sub New ()
S’applique à
XmlSchemaException(String)
- Source:
- XmlSchemaException.cs
- Source:
- XmlSchemaException.cs
- Source:
- XmlSchemaException.cs
- Source:
- XmlSchemaException.cs
- Source:
- XmlSchemaException.cs
Initialise une nouvelle instance de la XmlSchemaException classe avec le message d’exception spécifié.
public:
XmlSchemaException(System::String ^ message);
public XmlSchemaException(string? message);
public XmlSchemaException(string message);
new System.Xml.Schema.XmlSchemaException : string -> System.Xml.Schema.XmlSchemaException
Public Sub New (message As String)
Paramètres
- message
- String
Description string de la condition d’erreur.
S’applique à
XmlSchemaException(SerializationInfo, StreamingContext)
- Source:
- XmlSchemaException.cs
- Source:
- XmlSchemaException.cs
- Source:
- XmlSchemaException.cs
- Source:
- XmlSchemaException.cs
- Source:
- XmlSchemaException.cs
Attention
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
Construit un nouvel XmlSchemaException objet avec les informations et les données qui SerializationInfoStreamingContext contiennent toutes les propriétés du XmlSchemaException.
protected:
XmlSchemaException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected XmlSchemaException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected XmlSchemaException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Xml.Schema.XmlSchemaException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Xml.Schema.XmlSchemaException
new System.Xml.Schema.XmlSchemaException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Xml.Schema.XmlSchemaException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Paramètres
- info
- SerializationInfo
Serializationinfo.
- context
- StreamingContext
Streamingcontext.
- Attributs
S’applique à
XmlSchemaException(String, Exception)
- Source:
- XmlSchemaException.cs
- Source:
- XmlSchemaException.cs
- Source:
- XmlSchemaException.cs
- Source:
- XmlSchemaException.cs
- Source:
- XmlSchemaException.cs
Initialise une nouvelle instance de la XmlSchemaException classe avec le message d’exception et l’objet d’origine Exception qui a provoqué cette exception spécifiée.
public:
XmlSchemaException(System::String ^ message, Exception ^ innerException);
public XmlSchemaException(string? message, Exception? innerException);
public XmlSchemaException(string message, Exception innerException);
new System.Xml.Schema.XmlSchemaException : string * Exception -> System.Xml.Schema.XmlSchemaException
Public Sub New (message As String, innerException As Exception)
Paramètres
- message
- String
Description string de la condition d’erreur.
S’applique à
XmlSchemaException(String, Exception, Int32, Int32)
- Source:
- XmlSchemaException.cs
- Source:
- XmlSchemaException.cs
- Source:
- XmlSchemaException.cs
- Source:
- XmlSchemaException.cs
- Source:
- XmlSchemaException.cs
Initialise une nouvelle instance de la XmlSchemaException classe avec le message d’exception spécifié, ainsi que l’objet d’origine Exception , le numéro de ligne et la position de ligne du XML qui provoque cette exception spécifiée.
public:
XmlSchemaException(System::String ^ message, Exception ^ innerException, int lineNumber, int linePosition);
public XmlSchemaException(string? message, Exception? innerException, int lineNumber, int linePosition);
public XmlSchemaException(string message, Exception innerException, int lineNumber, int linePosition);
new System.Xml.Schema.XmlSchemaException : string * Exception * int * int -> System.Xml.Schema.XmlSchemaException
Public Sub New (message As String, innerException As Exception, lineNumber As Integer, linePosition As Integer)
Paramètres
- message
- String
Description string de la condition d’erreur.
- lineNumber
- Int32
Numéro de ligne du code XML qui a provoqué cette exception.
- linePosition
- Int32
Position de ligne du code XML qui a provoqué cette exception.