SyntaxErrorException Konstruktoren

Definition

Initialisiert eine neue Instanz der SyntaxErrorException-Klasse.

Überlädt

SyntaxErrorException()

Initialisiert eine neue Instanz der SyntaxErrorException-Klasse.

SyntaxErrorException(String)

Initialisiert eine neue Instanz der SyntaxErrorException-Klasse mit der angegebenen Zeichenfolge.

SyntaxErrorException(SerializationInfo, StreamingContext)
Veraltet.

Initialisiert eine neue Instanz der SyntaxErrorException-Klasse mit der SerializationInfo und dem StreamingContext.

SyntaxErrorException(String, Exception)

Initialisiert eine neue Instanz der SyntaxErrorException-Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die diese Ausnahme ausgelöst hat.

SyntaxErrorException()

Quelle:
FilterException.cs
Quelle:
FilterException.cs
Quelle:
FilterException.cs

Initialisiert eine neue Instanz der SyntaxErrorException-Klasse.

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

Gilt für:

SyntaxErrorException(String)

Quelle:
FilterException.cs
Quelle:
FilterException.cs
Quelle:
FilterException.cs

Initialisiert eine neue Instanz der SyntaxErrorException-Klasse mit der angegebenen Zeichenfolge.

public:
 SyntaxErrorException(System::String ^ s);
public SyntaxErrorException (string? s);
public SyntaxErrorException (string s);
new System.Data.SyntaxErrorException : string -> System.Data.SyntaxErrorException
Public Sub New (s As String)

Parameter

s
String

Die Zeichenfolge, die beim Auslösen der Ausnahme angezeigt werden soll.

Gilt für:

SyntaxErrorException(SerializationInfo, StreamingContext)

Quelle:
FilterException.cs
Quelle:
FilterException.cs
Quelle:
FilterException.cs

Achtung

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

Initialisiert eine neue Instanz der SyntaxErrorException-Klasse mit der SerializationInfo und dem StreamingContext.

protected:
 SyntaxErrorException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected SyntaxErrorException (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 SyntaxErrorException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Data.SyntaxErrorException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.SyntaxErrorException
[<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.Data.SyntaxErrorException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.SyntaxErrorException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameter

info
SerializationInfo

Die zur Serialisierung bzw. Deserialisierung eines Objekts benötigten Daten.

context
StreamingContext

Die Quelle und das Ziel eines bestimmten serialisierten Streams.

Attribute

Gilt für:

SyntaxErrorException(String, Exception)

Quelle:
FilterException.cs
Quelle:
FilterException.cs
Quelle:
FilterException.cs

Initialisiert eine neue Instanz der SyntaxErrorException-Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die diese Ausnahme ausgelöst hat.

public:
 SyntaxErrorException(System::String ^ message, Exception ^ innerException);
public SyntaxErrorException (string? message, Exception? innerException);
public SyntaxErrorException (string message, Exception innerException);
new System.Data.SyntaxErrorException : string * Exception -> System.Data.SyntaxErrorException
Public Sub New (message As String, innerException As Exception)

Parameter

message
String

Die Fehlermeldung, in der die Ursache der Ausnahme erklärt wird.

innerException
Exception

Die Ausnahme, die die aktuelle Ausnahme verursacht hat, oder ein Nullverweis (Nothing in Visual Basic), wenn keine innere Ausnahme angegeben ist.

Gilt für: