UriFormatException Konstruktoren

Definition

Initialisiert eine neue Instanz der UriFormatException-Klasse.

Überlädt

UriFormatException()

Initialisiert eine neue Instanz der UriFormatException-Klasse.

UriFormatException(String)

Initialisiert eine neue Instanz der UriFormatException-Klasse mit der angegebenen Meldung.

UriFormatException(SerializationInfo, StreamingContext)
Veraltet.

Initialisiert eine neue Instanz der UriFormatException-Klasse aus der angegebenen SerializationInfo-Instanz und der StreamingContext-Instanz.

UriFormatException(String, Exception)

Initialisiert eine neue Instanz der UriFormatException-Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die diese Ausnahme ausgelöst hat.

UriFormatException()

Initialisiert eine neue Instanz der UriFormatException-Klasse.

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

Hinweise

Der parameterlose Konstruktor initialisiert eine neue instance der UriFormatException -Klasse, wobei alle Felder auf festgelegt sindnull.

Gilt für:

UriFormatException(String)

Initialisiert eine neue Instanz der UriFormatException-Klasse mit der angegebenen Meldung.

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

Parameter

textString
String

Die Zeichenfolge der Fehlermeldung.

Hinweise

Der UriFormatException-Konstruktor initialisiert den UriFormatException instance, wobei die Message -Eigenschaft auf den Wert von textStringfestgelegt ist.

Gilt für:

UriFormatException(SerializationInfo, StreamingContext)

Achtung

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

Initialisiert eine neue Instanz der UriFormatException-Klasse aus der angegebenen SerializationInfo-Instanz und der StreamingContext-Instanz.

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

Parameter

serializationInfo
SerializationInfo

Eine SerializationInfo mit den zum Serialisieren der neuen UriFormatException erforderlichen Informationen.

streamingContext
StreamingContext

Ein StreamingContext mit der Quelle des serialisierten Streams, der der neuen UriFormatException zugeordnet ist.

Attribute

Hinweise

Dieser Konstruktor implementiert die ISerializable Schnittstelle für die UriFormatException -Klasse.

Weitere Informationen

Gilt für:

UriFormatException(String, Exception)

Initialisiert eine neue Instanz der UriFormatException-Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die diese Ausnahme ausgelöst hat.

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)

Parameter

textString
String

Die Meldung, in der die Ausnahme beschrieben wird Der Aufrufer dieses Konstruktors ist erforderlich, um sicherzustellen, dass diese Zeichenfolge für die aktuelle Systemkultur lokalisiert wurde.

e
Exception

Die Ausnahme, die die Ursache der aktuellen Ausnahme ist. Wenn der innerException-Parameter nicht null ist, wird die aktuelle Ausnahme in einem catch-Block ausgelöst, der die innere Ausnahme behandelt.

Hinweise

Eine Ausnahme, die als direktes Ergebnis einer vorhergehenden Ausnahme ausgelöst wird, muss in der InnerException-Eigenschaft über einen Verweis auf die vorhergehende Ausnahme verfügen. Die InnerException-Eigenschaft gibt den gleichen Wert zurück, der an den Konstruktor übergeben wird, oder null, wenn die InnerException-Eigenschaft den Wert der inneren Ausnahme nicht an den Konstruktor übergibt.

In der folgenden Tabelle werden die anfänglichen Eigenschaftenwerte für eine UriFormatException-Instanz aufgeführt.

Eigenschaft Wert
InnerException null.
Message Die in message angegebene Zeichenfolge der Fehlermeldung.

Weitere Informationen

Gilt für: