SwitchExpressionException Constructeurs

Définition

Surcharges

Nom Description
SwitchExpressionException()

Initialise une nouvelle instance de la classe SwitchExpressionException.

SwitchExpressionException(Exception)

Initialise une nouvelle instance de la SwitchExpressionException classe avec un message d’erreur spécifié et une référence à l’exception interne qui est la cause de cette exception.

SwitchExpressionException(Object)

Initialise une nouvelle instance de la SwitchExpressionException classe avec une valeur de commutateur sans correspondance.

SwitchExpressionException(String)

Initialise une nouvelle instance de la SwitchExpressionException classe avec le message spécifié.

SwitchExpressionException(String, Exception)

Initialise une nouvelle instance de la SwitchExpressionException classe avec la description détaillée spécifiée et l’exception spécifiée.

SwitchExpressionException()

Source:
SwitchExpressionException.cs
Source:
SwitchExpressionException.cs
Source:
SwitchExpressionException.cs
Source:
SwitchExpressionException.cs
Source:
SwitchExpressionException.cs

Initialise une nouvelle instance de la classe SwitchExpressionException.

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

S’applique à

SwitchExpressionException(Exception)

Source:
SwitchExpressionException.cs
Source:
SwitchExpressionException.cs
Source:
SwitchExpressionException.cs
Source:
SwitchExpressionException.cs
Source:
SwitchExpressionException.cs

Initialise une nouvelle instance de la SwitchExpressionException classe avec un message d’erreur spécifié et une référence à l’exception interne qui est la cause de cette exception.

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)

Paramètres

innerException
Exception

Exception qui est la cause de l’exception actuelle. Si le innerException paramètre n’est pas null, l’exception actuelle est levée dans un catch bloc qui gère l’exception interne.

S’applique à

SwitchExpressionException(Object)

Source:
SwitchExpressionException.cs
Source:
SwitchExpressionException.cs
Source:
SwitchExpressionException.cs
Source:
SwitchExpressionException.cs
Source:
SwitchExpressionException.cs

Initialise une nouvelle instance de la SwitchExpressionException classe avec une valeur de commutateur sans correspondance.

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)

Paramètres

unmatchedValue
Object

Valeur de commutateur qui ne correspond à aucun cas de commutateur.

S’applique à

SwitchExpressionException(String)

Source:
SwitchExpressionException.cs
Source:
SwitchExpressionException.cs
Source:
SwitchExpressionException.cs
Source:
SwitchExpressionException.cs
Source:
SwitchExpressionException.cs

Initialise une nouvelle instance de la SwitchExpressionException classe avec le message spécifié.

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)

Paramètres

message
String

Message à afficher à l’utilisateur final.

S’applique à

SwitchExpressionException(String, Exception)

Source:
SwitchExpressionException.cs
Source:
SwitchExpressionException.cs
Source:
SwitchExpressionException.cs
Source:
SwitchExpressionException.cs
Source:
SwitchExpressionException.cs

Initialise une nouvelle instance de la SwitchExpressionException classe avec la description détaillée spécifiée et l’exception spécifiée.

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)

Paramètres

message
String

Message à afficher à l’utilisateur final.

innerException
Exception

Référence à l’exception interne qui est la cause de cette exception.

S’applique à