SwitchExpressionException Konstruktorer
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Överlagringar
| Name | Description |
|---|---|
| SwitchExpressionException() |
Initierar en ny instans av SwitchExpressionException klassen. |
| SwitchExpressionException(Exception) |
Initierar en ny instans av SwitchExpressionException klassen med ett angivet felmeddelande och en referens till det inre undantaget som är orsaken till det här undantaget. |
| SwitchExpressionException(Object) |
Initierar en ny instans av SwitchExpressionException klassen med ett omatchat växelvärde. |
| SwitchExpressionException(String) |
Initierar en ny instans av SwitchExpressionException klassen med det angivna meddelandet. |
| SwitchExpressionException(String, Exception) |
Initierar en ny instans av SwitchExpressionException klassen med den angivna detaljerade beskrivningen och det angivna undantaget. |
SwitchExpressionException()
Initierar en ny instans av SwitchExpressionException klassen.
public:
SwitchExpressionException();
public SwitchExpressionException();
Public Sub New ()
Gäller för
SwitchExpressionException(Exception)
Initierar en ny instans av SwitchExpressionException klassen med ett angivet felmeddelande och en referens till det inre undantaget som är orsaken till det här undantaget.
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)
Parametrar
- innerException
- Exception
Undantaget som är orsaken till det aktuella undantaget. Om parametern innerException inte nullär genereras det aktuella undantaget i ett catch block som hanterar det inre undantaget.
Gäller för
SwitchExpressionException(Object)
Initierar en ny instans av SwitchExpressionException klassen med ett omatchat växelvärde.
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)
Parametrar
- unmatchedValue
- Object
Det växelvärde som inte matchar några växelfall.
Gäller för
SwitchExpressionException(String)
Initierar en ny instans av SwitchExpressionException klassen med det angivna meddelandet.
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)
Parametrar
- message
- String
Meddelandet som ska visas för slutanvändaren.
Gäller för
SwitchExpressionException(String, Exception)
Initierar en ny instans av SwitchExpressionException klassen med den angivna detaljerade beskrivningen och det angivna undantaget.
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)
Parametrar
- message
- String
Meddelandet som ska visas för slutanvändaren.
- innerException
- Exception
En referens till det inre undantaget som är orsaken till det här undantaget.