SwitchExpressionException Konstruktoren

Definition

Überlädt

SwitchExpressionException()

Initialisiert eine neue Instanz der SwitchExpressionException-Klasse.

SwitchExpressionException(Exception)

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

SwitchExpressionException(Object)

Initialisiert eine neue Instanz der SwitchExpressionException-Klasse mit einem nicht übereinstimmenden Schalterwert.

SwitchExpressionException(String)

Initialisiert eine neue Instanz der SwitchExpressionException-Klasse mit der angegebenen Meldung.

SwitchExpressionException(String, Exception)

Initialisiert eine neue Instanz der SwitchExpressionException-Klasse mit der angegebenen ausführlichen Beschreibung und der angegebenen Ausnahme.

SwitchExpressionException()

Quelle:
SwitchExpressionException.cs
Quelle:
SwitchExpressionException.cs
Quelle:
SwitchExpressionException.cs

Initialisiert eine neue Instanz der SwitchExpressionException-Klasse.

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

Gilt für:

SwitchExpressionException(Exception)

Quelle:
SwitchExpressionException.cs
Quelle:
SwitchExpressionException.cs
Quelle:
SwitchExpressionException.cs

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

public:
 SwitchExpressionException(Exception ^ innerException);
public SwitchExpressionException (Exception? innerException);
public SwitchExpressionException (Exception innerException);
new System.Runtime.CompilerServices.SwitchExpressionException : Exception -> System.Runtime.CompilerServices.SwitchExpressionException
Public Sub New (innerException As Exception)

Parameter

innerException
Exception

Die Ausnahme, die die Ursache der aktuellen Ausnahme ist. Wenn der innerException-Parameter nicht null ist, wird die aktuelle Ausnahme in einem catch-Block ausgelöst, der die innere Ausnahme behandelt.

Gilt für:

SwitchExpressionException(Object)

Quelle:
SwitchExpressionException.cs
Quelle:
SwitchExpressionException.cs
Quelle:
SwitchExpressionException.cs

Initialisiert eine neue Instanz der SwitchExpressionException-Klasse mit einem nicht übereinstimmenden Schalterwert.

public:
 SwitchExpressionException(System::Object ^ unmatchedValue);
public SwitchExpressionException (object? unmatchedValue);
public SwitchExpressionException (object unmatchedValue);
new System.Runtime.CompilerServices.SwitchExpressionException : obj -> System.Runtime.CompilerServices.SwitchExpressionException
Public Sub New (unmatchedValue As Object)

Parameter

unmatchedValue
Object

Der Schalterwert, der keinen Schalterfällen entspricht.

Gilt für:

SwitchExpressionException(String)

Quelle:
SwitchExpressionException.cs
Quelle:
SwitchExpressionException.cs
Quelle:
SwitchExpressionException.cs

Initialisiert eine neue Instanz der SwitchExpressionException-Klasse mit der angegebenen Meldung.

public:
 SwitchExpressionException(System::String ^ message);
public SwitchExpressionException (string? message);
public SwitchExpressionException (string message);
new System.Runtime.CompilerServices.SwitchExpressionException : string -> System.Runtime.CompilerServices.SwitchExpressionException
Public Sub New (message As String)

Parameter

message
String

Die Meldung, die dem Endbenutzer angezeigt wird.

Gilt für:

SwitchExpressionException(String, Exception)

Quelle:
SwitchExpressionException.cs
Quelle:
SwitchExpressionException.cs
Quelle:
SwitchExpressionException.cs

Initialisiert eine neue Instanz der SwitchExpressionException-Klasse mit der angegebenen ausführlichen Beschreibung und der angegebenen Ausnahme.

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

Parameter

message
String

Die Meldung, die dem Endbenutzer angezeigt wird.

innerException
Exception

Ein Verweis auf die innere Ausnahme, die dieser Ausnahme zugrunde liegt.

Gilt für: