SwitchExpressionException Konstruktoren
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
| Name | Beschreibung |
|---|---|
| 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 die Ursache dieser Ausnahme ist. |
| SwitchExpressionException(Object) |
Initialisiert eine neue Instanz der SwitchExpressionException Klasse mit einem Nichtübereinstimmungswert. |
| SwitchExpressionException(String) |
Initialisiert eine neue Instanz der SwitchExpressionException Klasse mit der angegebenen Nachricht. |
| SwitchExpressionException(String, Exception) |
Initialisiert eine neue Instanz der SwitchExpressionException Klasse mit der angegebenen detaillierten Beschreibung und der angegebenen Ausnahme. |
SwitchExpressionException()
- Quelle:
- SwitchExpressionException.cs
- Quelle:
- SwitchExpressionException.cs
- 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
- 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 die Ursache dieser Ausnahme ist.
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 nullangegeben 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
- Quelle:
- SwitchExpressionException.cs
- Quelle:
- SwitchExpressionException.cs
Initialisiert eine neue Instanz der SwitchExpressionException Klasse mit einem Nichtübereinstimmungswert.
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 keine Switchfälle erfüllt.
Gilt für:
SwitchExpressionException(String)
- Quelle:
- SwitchExpressionException.cs
- Quelle:
- SwitchExpressionException.cs
- Quelle:
- SwitchExpressionException.cs
- Quelle:
- SwitchExpressionException.cs
- Quelle:
- SwitchExpressionException.cs
Initialisiert eine neue Instanz der SwitchExpressionException Klasse mit der angegebenen Nachricht.
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 werden soll.
Gilt für:
SwitchExpressionException(String, Exception)
- Quelle:
- SwitchExpressionException.cs
- Quelle:
- SwitchExpressionException.cs
- Quelle:
- SwitchExpressionException.cs
- Quelle:
- SwitchExpressionException.cs
- Quelle:
- SwitchExpressionException.cs
Initialisiert eine neue Instanz der SwitchExpressionException Klasse mit der angegebenen detaillierten 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 werden soll.
- innerException
- Exception
Ein Verweis auf die innere Ausnahme, die die Ursache dieser Ausnahme ist.