XmlSchemaException Konstruktorer
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Strömmar alla XmlSchemaException egenskaper till SerializationInfo klassen för den angivna StreamingContext.
Överlagringar
| Name | Description |
|---|---|
| XmlSchemaException() |
Initierar en ny instans av XmlSchemaException klassen. |
| XmlSchemaException(String) |
Initierar en ny instans av XmlSchemaException klassen med det angivna undantagsmeddelandet. |
| XmlSchemaException(SerializationInfo, StreamingContext) |
Föråldrad.
Konstruerar ett nytt |
| XmlSchemaException(String, Exception) |
Initierar en ny instans av XmlSchemaException klassen med undantagsmeddelandet och det ursprungliga Exception objektet som orsakade det angivna undantaget. |
| XmlSchemaException(String, Exception, Int32, Int32) |
Initierar en ny instans av XmlSchemaException klassen med det angivna undantagsmeddelandet och det ursprungliga Exception objektet, radnumret och radpositionen för DEN XML som orsakar det angivna undantaget. |
XmlSchemaException()
- Källa:
- XmlSchemaException.cs
- Källa:
- XmlSchemaException.cs
- Källa:
- XmlSchemaException.cs
- Källa:
- XmlSchemaException.cs
- Källa:
- XmlSchemaException.cs
Initierar en ny instans av XmlSchemaException klassen.
public:
XmlSchemaException();
public XmlSchemaException();
Public Sub New ()
Gäller för
XmlSchemaException(String)
- Källa:
- XmlSchemaException.cs
- Källa:
- XmlSchemaException.cs
- Källa:
- XmlSchemaException.cs
- Källa:
- XmlSchemaException.cs
- Källa:
- XmlSchemaException.cs
Initierar en ny instans av XmlSchemaException klassen med det angivna undantagsmeddelandet.
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)
Parametrar
- message
- String
En string beskrivning av feltillståndet.
Gäller för
XmlSchemaException(SerializationInfo, StreamingContext)
- Källa:
- XmlSchemaException.cs
- Källa:
- XmlSchemaException.cs
- Källa:
- XmlSchemaException.cs
- Källa:
- XmlSchemaException.cs
- Källa:
- XmlSchemaException.cs
Varning
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
Konstruerar ett nytt XmlSchemaException objekt med angiven SerializationInfo information och StreamingContext information som innehåller alla egenskaper för 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)
Parametrar
- info
- SerializationInfo
SerializationInfo.
- context
- StreamingContext
StreamingContext.
- Attribut
Gäller för
XmlSchemaException(String, Exception)
- Källa:
- XmlSchemaException.cs
- Källa:
- XmlSchemaException.cs
- Källa:
- XmlSchemaException.cs
- Källa:
- XmlSchemaException.cs
- Källa:
- XmlSchemaException.cs
Initierar en ny instans av XmlSchemaException klassen med undantagsmeddelandet och det ursprungliga Exception objektet som orsakade det angivna undantaget.
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)
Parametrar
- message
- String
En string beskrivning av feltillståndet.
Gäller för
XmlSchemaException(String, Exception, Int32, Int32)
- Källa:
- XmlSchemaException.cs
- Källa:
- XmlSchemaException.cs
- Källa:
- XmlSchemaException.cs
- Källa:
- XmlSchemaException.cs
- Källa:
- XmlSchemaException.cs
Initierar en ny instans av XmlSchemaException klassen med det angivna undantagsmeddelandet och det ursprungliga Exception objektet, radnumret och radpositionen för DEN XML som orsakar det angivna undantaget.
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)
Parametrar
- message
- String
En string beskrivning av feltillståndet.
- lineNumber
- Int32
Radnumret för DEN XML som orsakade det här undantaget.
- linePosition
- Int32
Radpositionen för DEN XML som orsakade det här undantaget.