SwitchExpressionException Konstruktorer

Definition

Ö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()

Källa:
SwitchExpressionException.cs
Källa:
SwitchExpressionException.cs
Källa:
SwitchExpressionException.cs
Källa:
SwitchExpressionException.cs
Källa:
SwitchExpressionException.cs

Initierar en ny instans av SwitchExpressionException klassen.

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

Gäller för

SwitchExpressionException(Exception)

Källa:
SwitchExpressionException.cs
Källa:
SwitchExpressionException.cs
Källa:
SwitchExpressionException.cs
Källa:
SwitchExpressionException.cs
Källa:
SwitchExpressionException.cs

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)

Källa:
SwitchExpressionException.cs
Källa:
SwitchExpressionException.cs
Källa:
SwitchExpressionException.cs
Källa:
SwitchExpressionException.cs
Källa:
SwitchExpressionException.cs

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)

Källa:
SwitchExpressionException.cs
Källa:
SwitchExpressionException.cs
Källa:
SwitchExpressionException.cs
Källa:
SwitchExpressionException.cs
Källa:
SwitchExpressionException.cs

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)

Källa:
SwitchExpressionException.cs
Källa:
SwitchExpressionException.cs
Källa:
SwitchExpressionException.cs
Källa:
SwitchExpressionException.cs
Källa:
SwitchExpressionException.cs

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.

Gäller för