UriFormatException コンストラクター

定義

UriFormatException クラスの新しいインスタンスを初期化します。

オーバーロード

UriFormatException()

UriFormatException クラスの新しいインスタンスを初期化します。

UriFormatException(String)

指定したメッセージを使用して、UriFormatException クラスの新しいインスタンスを初期化します。

UriFormatException(SerializationInfo, StreamingContext)
古い.

指定した UriFormatException インスタンスと SerializationInfo インスタンスから、StreamingContext クラスの新しいインスタンスを初期化します。

UriFormatException(String, Exception)

指定したエラー メッセージおよびこの例外の原因となった内部例外への参照を使用して、UriFormatException クラスの新しいインスタンスを初期化します。

UriFormatException()

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

UriFormatException クラスの新しいインスタンスを初期化します。

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

注釈

パラメーターなしのコンストラクターは、すべてのフィールドを に設定して UriFormatException 、 クラスの新しいインスタンスを null初期化します。

適用対象

UriFormatException(String)

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

指定したメッセージを使用して、UriFormatException クラスの新しいインスタンスを初期化します。

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

パラメーター

textString
String

エラー メッセージ文字列。

注釈

UriFormatException コンストラクターは、 プロパティを のUriFormatExceptiontextStringに設定してインスタンスMessageを初期化します。

適用対象

UriFormatException(SerializationInfo, StreamingContext)

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

注意事項

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

指定した UriFormatException インスタンスと SerializationInfo インスタンスから、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)

パラメーター

serializationInfo
SerializationInfo

新しい SerializationInfo をシリアル化するために必要な情報を格納する UriFormatException

streamingContext
StreamingContext

新しい UriFormatException に関連付けられるシリアル化ストリームの転送元を格納する StreamingContext

属性

注釈

このコンストラクターは、 クラスの ISerializable インターフェイスを UriFormatException 実装します。

こちらもご覧ください

適用対象

UriFormatException(String, Exception)

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

指定したエラー メッセージおよびこの例外の原因となった内部例外への参照を使用して、UriFormatException クラスの新しいインスタンスを初期化します。

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)

パラメーター

textString
String

例外を説明するメッセージ。 このコンストラクターの呼び出し元は、この文字列が現在のシステム環境向けにローカライズされていることを確認する必要があります。

e
Exception

現在の例外の原因となった例外。 innerException パラメーターが null でない場合は、内部例外を処理する catch ブロックで現在の例外が発生します。

注釈

前の例外の直接の結果としてスローされる例外については、InnerException プロパティに、前の例外への参照を含める必要があります。 InnerException プロパティは、コンストラクターに渡されるのと同じ値を返します。または、InnerException プロパティがコンストラクターに内部例外値を提供しない場合には null を返します。

次の表に、UriFormatException のインスタンスに対するプロパティの初期値を示します。

プロパティ
InnerException null.
Message message で指定したエラー メッセージ文字列。

こちらもご覧ください

適用対象