UriFormatException Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy UriFormatException.

Przeciążenia

Nazwa Opis
UriFormatException()

Inicjuje nowe wystąpienie klasy UriFormatException.

UriFormatException(String)

Inicjuje nowe wystąpienie UriFormatException klasy z określonym komunikatem.

UriFormatException(SerializationInfo, StreamingContext)
Przestarzałe.

Inicjuje nowe wystąpienie UriFormatException klasy z określonych SerializationInfo wystąpień i StreamingContext .

UriFormatException(String, Exception)

Inicjuje nowe wystąpienie UriFormatException klasy z określonym komunikatem o błędzie i odwołaniem do wyjątku wewnętrznego, który jest przyczyną tego wyjątku.

UriFormatException()

Źródło:
UriFormatException.cs
Źródło:
UriFormatException.cs
Źródło:
UriFormatException.cs
Źródło:
UriFormatException.cs
Źródło:
UriFormatException.cs

Inicjuje nowe wystąpienie klasy UriFormatException.

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

Uwagi

Konstruktor bez parametrów inicjuje nowe wystąpienie klasy ze wszystkimi UriFormatException polami ustawionymi na nullwartość .

Dotyczy

UriFormatException(String)

Źródło:
UriFormatException.cs
Źródło:
UriFormatException.cs
Źródło:
UriFormatException.cs
Źródło:
UriFormatException.cs
Źródło:
UriFormatException.cs

Inicjuje nowe wystąpienie UriFormatException klasy z określonym komunikatem.

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

Parametry

textString
String

Ciąg komunikatu o błędzie.

Uwagi

Konstruktor UriFormatException inicjuje UriFormatException wystąpienie z Message właściwością ustawioną na wartość textString.

Dotyczy

UriFormatException(SerializationInfo, StreamingContext)

Źródło:
UriFormatException.cs
Źródło:
UriFormatException.cs
Źródło:
UriFormatException.cs
Źródło:
UriFormatException.cs
Źródło:
UriFormatException.cs

Uwaga

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

Inicjuje nowe wystąpienie UriFormatException klasy z określonych SerializationInfo wystąpień i 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);
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)

Parametry

serializationInfo
SerializationInfo

Element SerializationInfo zawierający informacje wymagane do serializacji nowego UriFormatExceptionelementu .

streamingContext
StreamingContext

Element StreamingContext zawierający źródło serializowanego strumienia skojarzonego z nowym UriFormatExceptionelementem .

Atrybuty

Uwagi

Ten konstruktor implementuje ISerializable interfejs dla UriFormatException klasy .

Zobacz też

Dotyczy

UriFormatException(String, Exception)

Źródło:
UriFormatException.cs
Źródło:
UriFormatException.cs
Źródło:
UriFormatException.cs
Źródło:
UriFormatException.cs
Źródło:
UriFormatException.cs

Inicjuje nowe wystąpienie UriFormatException klasy z określonym komunikatem o błędzie i odwołaniem do wyjątku wewnętrznego, który jest przyczyną tego wyjątku.

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)

Parametry

textString
String

Komunikat opisujący wyjątek. Obiekt wywołujący tego konstruktora jest wymagany, aby upewnić się, że ten ciąg został zlokalizowany dla bieżącej kultury systemu.

e
Exception

Wyjątek, który jest przyczyną bieżącego wyjątku. Jeśli parametr innerException nie jest null, bieżący wyjątek jest zgłaszany w bloku catch, który obsługuje wyjątek wewnętrzny.

Uwagi

Wyjątek zgłaszany bezpośrednio w wyniku poprzedniego wyjątku powinien zawierać odwołanie do poprzedniego wyjątku we właściwości InnerException. Właściwość InnerException zwraca tę samą wartość, która jest przekazywana do konstruktora, lub null, jeśli właściwość InnerException nie dostarcza wartości wyjątku wewnętrznego do konstruktora.

W poniższej tabeli przedstawiono początkowe wartości właściwości dla wystąpienia UriFormatException.

Majątek Wartość
InnerException null.
Message Ciąg komunikatu o błędzie określony w message.

Zobacz też

Dotyczy