XmlSchemaException Konstruktory

Definicja

Przesyła strumieniowo XmlSchemaException wszystkie właściwości do SerializationInfo klasy dla danego StreamingContextelementu .

Przeciążenia

Nazwa Opis
XmlSchemaException()

Inicjuje nowe wystąpienie klasy XmlSchemaException.

XmlSchemaException(String)

Inicjuje nowe wystąpienie XmlSchemaException klasy z określonym komunikatem o wyjątku.

XmlSchemaException(SerializationInfo, StreamingContext)
Przestarzałe.

Tworzy nowy XmlSchemaException obiekt z podanymi SerializationInfo informacjami i StreamingContext zawierającymi wszystkie właściwości obiektu XmlSchemaException.

XmlSchemaException(String, Exception)

Inicjuje nowe wystąpienie XmlSchemaException klasy z komunikatem o wyjątku i oryginalnym Exception obiektem, który spowodował określony ten wyjątek.

XmlSchemaException(String, Exception, Int32, Int32)

Inicjuje nowe wystąpienie XmlSchemaException klasy z określonym komunikatem o wyjątku, a oryginalny Exception obiekt, numer wiersza i położenie wiersza xml, które powodują określony wyjątek.

XmlSchemaException()

Źródło:
XmlSchemaException.cs
Źródło:
XmlSchemaException.cs
Źródło:
XmlSchemaException.cs
Źródło:
XmlSchemaException.cs
Źródło:
XmlSchemaException.cs

Inicjuje nowe wystąpienie klasy XmlSchemaException.

public:
 XmlSchemaException();
public XmlSchemaException();
Public Sub New ()

Dotyczy

XmlSchemaException(String)

Źródło:
XmlSchemaException.cs
Źródło:
XmlSchemaException.cs
Źródło:
XmlSchemaException.cs
Źródło:
XmlSchemaException.cs
Źródło:
XmlSchemaException.cs

Inicjuje nowe wystąpienie XmlSchemaException klasy z określonym komunikatem o wyjątku.

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)

Parametry

message
String

string Opis warunku błędu.

Dotyczy

XmlSchemaException(SerializationInfo, StreamingContext)

Źródło:
XmlSchemaException.cs
Źródło:
XmlSchemaException.cs
Źródło:
XmlSchemaException.cs
Źródło:
XmlSchemaException.cs
Źródło:
XmlSchemaException.cs

Uwaga

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

Tworzy nowy XmlSchemaException obiekt z podanymi SerializationInfo informacjami i StreamingContext zawierającymi wszystkie właściwości obiektu 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)

Parametry

info
SerializationInfo

Serializationinfo.

context
StreamingContext

Streamingcontext.

Atrybuty

Dotyczy

XmlSchemaException(String, Exception)

Źródło:
XmlSchemaException.cs
Źródło:
XmlSchemaException.cs
Źródło:
XmlSchemaException.cs
Źródło:
XmlSchemaException.cs
Źródło:
XmlSchemaException.cs

Inicjuje nowe wystąpienie XmlSchemaException klasy z komunikatem o wyjątku i oryginalnym Exception obiektem, który spowodował określony ten wyjątek.

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)

Parametry

message
String

string Opis warunku błędu.

innerException
Exception

Oryginalny Exception obiekt, który spowodował ten wyjątek.

Dotyczy

XmlSchemaException(String, Exception, Int32, Int32)

Źródło:
XmlSchemaException.cs
Źródło:
XmlSchemaException.cs
Źródło:
XmlSchemaException.cs
Źródło:
XmlSchemaException.cs
Źródło:
XmlSchemaException.cs

Inicjuje nowe wystąpienie XmlSchemaException klasy z określonym komunikatem o wyjątku, a oryginalny Exception obiekt, numer wiersza i położenie wiersza xml, które powodują określony wyjątek.

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)

Parametry

message
String

string Opis warunku błędu.

innerException
Exception

Oryginalny Exception obiekt, który spowodował ten wyjątek.

lineNumber
Int32

Numer wiersza xml, który spowodował ten wyjątek.

linePosition
Int32

Pozycja wiersza xml, która spowodowała ten wyjątek.

Dotyczy