Partager via


UriFormatException Constructeurs

Définition

Initialise une nouvelle instance de la classe UriFormatException.

Surcharges

Nom Description
UriFormatException()

Initialise une nouvelle instance de la classe UriFormatException.

UriFormatException(String)

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

UriFormatException(SerializationInfo, StreamingContext)
Obsolète.

Initialise une nouvelle instance de la UriFormatException classe à partir des instances et des instances spécifiées SerializationInfoStreamingContext .

UriFormatException(String, Exception)

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

UriFormatException()

Source:
UriFormatException.cs
Source:
UriFormatException.cs
Source:
UriFormatException.cs
Source:
UriFormatException.cs
Source:
UriFormatException.cs

Initialise une nouvelle instance de la classe UriFormatException.

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

Remarques

Le constructeur sans paramètre initialise une nouvelle instance de la UriFormatException classe avec tous les champs définis nullsur .

S’applique à

UriFormatException(String)

Source:
UriFormatException.cs
Source:
UriFormatException.cs
Source:
UriFormatException.cs
Source:
UriFormatException.cs
Source:
UriFormatException.cs

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

public:
 UriFormatException(System::String ^ textString);
public UriFormatException(string textString);
public UriFormatException(string? textString);
new UriFormatException : string -> UriFormatException
Public Sub New (textString As String)

Paramètres

textString
String

Chaîne de message d’erreur.

Remarques

Le constructeur UriFormatException initialise l’instance UriFormatException avec la Message propriété définie sur la valeur de textString.

S’applique à

UriFormatException(SerializationInfo, StreamingContext)

Source:
UriFormatException.cs
Source:
UriFormatException.cs
Source:
UriFormatException.cs
Source:
UriFormatException.cs
Source:
UriFormatException.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 UriFormatException classe à partir des instances et des instances spécifiées SerializationInfoStreamingContext .

protected:
 UriFormatException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
[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 UriFormatException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
protected UriFormatException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[<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 UriFormatException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> UriFormatException
new UriFormatException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> UriFormatException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

Paramètres

serializationInfo
SerializationInfo

Qui SerializationInfo contient les informations requises pour sérialiser le nouveau UriFormatException.

streamingContext
StreamingContext

Qui StreamingContext contient la source du flux sérialisé associé au nouveau UriFormatException.

Attributs

Remarques

Ce constructeur implémente l’interface ISerializable pour la UriFormatException classe.

Voir aussi

S’applique à

UriFormatException(String, Exception)

Source:
UriFormatException.cs
Source:
UriFormatException.cs
Source:
UriFormatException.cs
Source:
UriFormatException.cs
Source:
UriFormatException.cs

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

public:
 UriFormatException(System::String ^ textString, Exception ^ e);
public UriFormatException(string textString, Exception e);
public UriFormatException(string? textString, Exception? e);
new UriFormatException : string * Exception -> UriFormatException
Public Sub New (textString As String, e As Exception)

Paramètres

textString
String

Message qui décrit l’exception. L’appelant de ce constructeur est requis pour s’assurer que cette chaîne a été localisée pour la culture système actuelle.

e
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.

Remarques

Une exception levée en conséquence directe d’une exception précédente doit inclure une référence à l’exception précédente dans la InnerException propriété. La InnerException propriété retourne la même valeur que celle passée dans le constructeur, ou null si la InnerException propriété ne fournit pas la valeur d’exception interne au constructeur.

Le tableau suivant présente les valeurs de propriété initiales d’une instance de UriFormatException.

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

Voir aussi

S’applique à