RuntimeBinderException Constructeurs

Définition

Initialise une nouvelle instance de la classe RuntimeBinderException.

Surcharges

RuntimeBinderException()

Initialise une nouvelle instance de la classe RuntimeBinderException.

RuntimeBinderException(String)

Initialise une nouvelle instance de la classe RuntimeBinderException qui comporte un message d'erreur spécifié.

RuntimeBinderException(SerializationInfo, StreamingContext)
Obsolète.

Initialise une nouvelle instance de la classe RuntimeBinderException qui comporte des données sérialisées.

RuntimeBinderException(String, Exception)

Initialise une nouvelle instance de la classe RuntimeBinderException qui comporte un message d'erreur spécifié et une référence à l'exception interne à l'origine de cette exception.

RuntimeBinderException()

Source:
RuntimeBinderException.cs
Source:
RuntimeBinderException.cs
Source:
RuntimeBinderException.cs

Initialise une nouvelle instance de la classe RuntimeBinderException.

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

Remarques

Ce constructeur initialise la Message propriété du nouveau instance à un message fourni par le système qui décrit l’erreur, tel que « DefaultMessageDisplayedByParameterlessCtorWriterMustSupply ». Ce message prend en compte la culture système actuelle.

Le tableau suivant affiche les valeurs de propriété initiales pour une instance de InsufficientMemoryException.

Propriété Valeur
InnerException null.
Message Chaîne du message d'erreur localisé.

Voir aussi

S’applique à

RuntimeBinderException(String)

Source:
RuntimeBinderException.cs
Source:
RuntimeBinderException.cs
Source:
RuntimeBinderException.cs

Initialise une nouvelle instance de la classe RuntimeBinderException qui comporte un message d'erreur spécifié.

public:
 RuntimeBinderException(System::String ^ message);
public RuntimeBinderException (string message);
public RuntimeBinderException (string? message);
new Microsoft.CSharp.RuntimeBinder.RuntimeBinderException : string -> Microsoft.CSharp.RuntimeBinder.RuntimeBinderException
Public Sub New (message As String)

Paramètres

message
String

Message décrivant l'exception. L'appelant de ce constructeur est requis pour vérifier que cette chaîne a été localisée pour la culture système actuelle.

Remarques

Le tableau suivant affiche les valeurs de propriété initiales pour une instance de RuntimeBinderException.

Propriété Valeur
InnerException null.
Message Chaîne de message d'erreur spécifiée dans message.

Voir aussi

S’applique à

RuntimeBinderException(SerializationInfo, StreamingContext)

Source:
RuntimeBinderException.cs
Source:
RuntimeBinderException.cs
Source:
RuntimeBinderException.cs

Attention

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

Initialise une nouvelle instance de la classe RuntimeBinderException qui comporte des données sérialisées.

protected:
 RuntimeBinderException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected RuntimeBinderException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected RuntimeBinderException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.CSharp.RuntimeBinder.RuntimeBinderException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.CSharp.RuntimeBinder.RuntimeBinderException
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new Microsoft.CSharp.RuntimeBinder.RuntimeBinderException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.CSharp.RuntimeBinder.RuntimeBinderException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Paramètres

info
SerializationInfo

Objet qui contient les données d'objet sérialisées relatives à l'exception levée.

context
StreamingContext

Informations contextuelles sur la source ou la destination.

Attributs

Remarques

Ce constructeur est appelé lors de la désérialisation afin de reconstituer l'objet exception transmis sur un flux.

S’applique à

RuntimeBinderException(String, Exception)

Source:
RuntimeBinderException.cs
Source:
RuntimeBinderException.cs
Source:
RuntimeBinderException.cs

Initialise une nouvelle instance de la classe RuntimeBinderException qui comporte un message d'erreur spécifié et une référence à l'exception interne à l'origine de cette exception.

public:
 RuntimeBinderException(System::String ^ message, Exception ^ innerException);
public RuntimeBinderException (string message, Exception innerException);
public RuntimeBinderException (string? message, Exception? innerException);
new Microsoft.CSharp.RuntimeBinder.RuntimeBinderException : string * Exception -> Microsoft.CSharp.RuntimeBinder.RuntimeBinderException
Public Sub New (message As String, innerException As Exception)

Paramètres

message
String

Message d'erreur qui explique la raison de l'exception.

innerException
Exception

Exception qui est la cause de l'exception actuelle, ou référence null si aucune exception interne n'est spécifiée.

Remarques

Une exception levée en conséquence directe d'une exception précédente doit contenir une référence à celle-ci dans la propriété InnerException. La propriété InnerException retourne la valeur passée au constructeur ou la valeur null si la propriété InnerException ne fournit pas la valeur d'exception interne au constructeur.

Le tableau suivant affiche les valeurs de propriété initiales pour une instance de RuntimeBinderException.

Propriété Valeur
InnerException null.
Message Chaîne de message d'erreur spécifiée dans message.

S’applique à