Freigeben über


UriFormatException Konstruktoren

Definition

Initialisiert eine neue Instanz der UriFormatException-Klasse.

Überlädt

Name Beschreibung
UriFormatException()

Initialisiert eine neue Instanz der UriFormatException-Klasse.

UriFormatException(String)

Initialisiert eine neue Instanz der UriFormatException Klasse mit der angegebenen Nachricht.

UriFormatException(SerializationInfo, StreamingContext)
Veraltet.

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

UriFormatException(String, Exception)

Initialisiert eine neue Instanz der UriFormatException Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die die Ursache dieser Ausnahme ist.

UriFormatException()

Quelle:
UriFormatException.cs
Quelle:
UriFormatException.cs
Quelle:
UriFormatException.cs
Quelle:
UriFormatException.cs
Quelle:
UriFormatException.cs

Initialisiert eine neue Instanz der UriFormatException-Klasse.

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

Hinweise

Der parameterlose Konstruktor initialisiert eine neue Instanz der Klasse, auf die UriFormatException alle Felder festgelegt sind null.

Gilt für:

UriFormatException(String)

Quelle:
UriFormatException.cs
Quelle:
UriFormatException.cs
Quelle:
UriFormatException.cs
Quelle:
UriFormatException.cs
Quelle:
UriFormatException.cs

Initialisiert eine neue Instanz der UriFormatException Klasse mit der angegebenen Nachricht.

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

Hinweise

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

Gilt für:

UriFormatException(SerializationInfo, StreamingContext)

Quelle:
UriFormatException.cs
Quelle:
UriFormatException.cs
Quelle:
UriFormatException.cs
Quelle:
UriFormatException.cs
Quelle:
UriFormatException.cs

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 den angegebenen SerializationInfo Instanzen und StreamingContext Instanzen.

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)

Parameter

serializationInfo
SerializationInfo

Eine SerializationInfo , die die Informationen enthält, die zum Serialisieren des neuen UriFormatExceptionerforderlich sind.

streamingContext
StreamingContext

A StreamingContext that contains the source of the serialized stream that is associated with the new UriFormatException.

Attribute

Hinweise

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

Weitere Informationen

Gilt für:

UriFormatException(String, Exception)

Quelle:
UriFormatException.cs
Quelle:
UriFormatException.cs
Quelle:
UriFormatException.cs
Quelle:
UriFormatException.cs
Quelle:
UriFormatException.cs

Initialisiert eine neue Instanz der UriFormatException Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die die Ursache dieser Ausnahme ist.

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, die die Ausnahme beschreibt. 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 nullangegeben ist, wird die aktuelle Ausnahme in einem catch Block ausgelöst, der die innere Ausnahme behandelt.

Hinweise

Eine Ausnahme, die als direktes Ergebnis einer vorherigen Ausnahme ausgelöst wird, sollte einen Verweis auf die vorherige Ausnahme in der InnerException Eigenschaft enthalten. Die InnerException Eigenschaft gibt denselben Wert zurück, der an den Konstruktor übergeben wird, oder null wenn die InnerException Eigenschaft den inneren Ausnahmewert nicht für den Konstruktor angibt.

In der folgenden Tabelle sind die anfänglichen Eigenschaftswerte für eine Instanz von UriFormatException.

Eigentum Wert
InnerException null.
Message Die in message.

Weitere Informationen

Gilt für: