UriFormatException Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy UriFormatException.

Przeciążenia

UriFormatException()

Inicjuje nowe wystąpienie klasy UriFormatException.

UriFormatException(String)

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

UriFormatException(SerializationInfo, StreamingContext)
Przestarzałe.

Inicjuje UriFormatException nowe wystąpienie 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

Inicjuje nowe wystąpienie klasy UriFormatException.

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

Uwagi

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

Dotyczy

UriFormatException(String)

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

Inicjuje nowe wystąpienie klasy UriFormatException 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

Przestroga

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

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

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)

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

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

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 w celu zagwarantowania, że ten ciąg został zlokalizowany w bieżącej kulturze systemu.

e
Exception

Wyjątek będący przyczyną bieżącego wyjątku. innerException Jeśli parametr nie nulljest , bieżący wyjątek jest zgłaszany w catch bloku, 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 została przekazana do konstruktora, lub wartość null, jeśli właściwość InnerException nie przekazuje do konstruktora wartości wyjątku wewnętrznego.

Poniższa tabela prezentuje początkowe wartości właściwości dla wystąpienia klasy UriFormatException.

Właściwość Wartość
InnerException null.
Message Ciąg z komunikatem o błędzie określony w parametrze message.

Zobacz też

Dotyczy