XmlSchemaException Konstruktorok
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Az összes tulajdonságot az XmlSchemaExceptionSerializationInfo adott StreamingContextosztályba streameli.
Túlterhelések
| Name | Description |
|---|---|
| XmlSchemaException() |
Inicializálja a XmlSchemaException osztály új példányát. |
| XmlSchemaException(String) |
Inicializálja az XmlSchemaException osztály új példányát a megadott kivételüzenettel. |
| XmlSchemaException(SerializationInfo, StreamingContext) |
Elavult.
Új objektumot |
| XmlSchemaException(String, Exception) |
Inicializálja az osztály új példányát a XmlSchemaException kivételüzenettel és a kivételt okozó eredeti Exception objektummal. |
| XmlSchemaException(String, Exception, Int32, Int32) |
Inicializálja az XmlSchemaException osztály új példányát a megadott kivételüzenettel, valamint a kivételt okozó XML eredeti Exception objektumát, sorszámát és sorpozícióját. |
XmlSchemaException()
- Forrás:
- XmlSchemaException.cs
- Forrás:
- XmlSchemaException.cs
- Forrás:
- XmlSchemaException.cs
- Forrás:
- XmlSchemaException.cs
- Forrás:
- XmlSchemaException.cs
Inicializálja a XmlSchemaException osztály új példányát.
public:
XmlSchemaException();
public XmlSchemaException();
Public Sub New ()
A következőre érvényes:
XmlSchemaException(String)
- Forrás:
- XmlSchemaException.cs
- Forrás:
- XmlSchemaException.cs
- Forrás:
- XmlSchemaException.cs
- Forrás:
- XmlSchemaException.cs
- Forrás:
- XmlSchemaException.cs
Inicializálja az XmlSchemaException osztály új példányát a megadott kivételüzenettel.
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éterek
- message
- String
A string hibafeltétel leírása.
A következőre érvényes:
XmlSchemaException(SerializationInfo, StreamingContext)
- Forrás:
- XmlSchemaException.cs
- Forrás:
- XmlSchemaException.cs
- Forrás:
- XmlSchemaException.cs
- Forrás:
- XmlSchemaException.cs
- Forrás:
- XmlSchemaException.cs
Figyelemfelhívás
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
Új objektumot XmlSchemaException hoz létre a megadott SerializationInfo és StreamingContext az összes tulajdonságot XmlSchemaExceptiontartalmazó információval.
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éterek
- info
- SerializationInfo
SzerializationInfo.
- context
- StreamingContext
StreamingContext.
- Attribútumok
A következőre érvényes:
XmlSchemaException(String, Exception)
- Forrás:
- XmlSchemaException.cs
- Forrás:
- XmlSchemaException.cs
- Forrás:
- XmlSchemaException.cs
- Forrás:
- XmlSchemaException.cs
- Forrás:
- XmlSchemaException.cs
Inicializálja az osztály új példányát a XmlSchemaException kivételüzenettel és a kivételt okozó eredeti Exception objektummal.
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éterek
- message
- String
A string hibafeltétel leírása.
A következőre érvényes:
XmlSchemaException(String, Exception, Int32, Int32)
- Forrás:
- XmlSchemaException.cs
- Forrás:
- XmlSchemaException.cs
- Forrás:
- XmlSchemaException.cs
- Forrás:
- XmlSchemaException.cs
- Forrás:
- XmlSchemaException.cs
Inicializálja az XmlSchemaException osztály új példányát a megadott kivételüzenettel, valamint a kivételt okozó XML eredeti Exception objektumát, sorszámát és sorpozícióját.
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éterek
- message
- String
A string hibafeltétel leírása.
- lineNumber
- Int32
A kivételt okozó XML sorszáma.
- linePosition
- Int32
A kivételt okozó XML vonalpozíciója.