XmlSchemaException Konstruktory

Definicja

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

Przeciążenia

XmlSchemaException()

Inicjuje nowe wystąpienie klasy XmlSchemaException.

XmlSchemaException(String)

Inicjuje XmlSchemaException nowe wystąpienie 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 XmlSchemaException nowe wystąpienie klasy z komunikatem o wyjątku i oryginalnym Exception obiektem, który spowodował określony wyjątek.

XmlSchemaException(String, Exception, Int32, Int32)

Inicjuje nowe wystąpienie XmlSchemaException klasy z określonym komunikatem o wyjątku oraz oryginalnym Exception obiekcie, numerze wiersza i pozycji 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

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

Inicjuje XmlSchemaException nowe wystąpienie 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

Opis string warunku błędu.

Dotyczy

XmlSchemaException(SerializationInfo, StreamingContext)

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

Przestroga

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);
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);
new System.Xml.Schema.XmlSchemaException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Xml.Schema.XmlSchemaException
[<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
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

Inicjuje XmlSchemaException nowe wystąpienie klasy z komunikatem o wyjątku i oryginalnym Exception obiektem, który spowodował określony 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

Opis string 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

Inicjuje nowe wystąpienie XmlSchemaException klasy z określonym komunikatem o wyjątku oraz oryginalnym Exception obiekcie, numerze wiersza i pozycji 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

Opis string 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 kodu XML, która spowodowała ten wyjątek.

Dotyczy