TypeUnloadedException コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
TypeUnloadedException クラスの新しいインスタンスを初期化します。
オーバーロード
| 名前 | 説明 |
|---|---|
| TypeUnloadedException() |
TypeUnloadedException クラスの新しいインスタンスを初期化します。 |
| TypeUnloadedException(String) |
指定したエラー メッセージを使用して、 TypeUnloadedException クラスの新しいインスタンスを初期化します。 |
| TypeUnloadedException(SerializationInfo, StreamingContext) |
古い.
シリアル化されたデータを使用して、 TypeUnloadedException クラスの新しいインスタンスを初期化します。 |
| TypeUnloadedException(String, Exception) |
指定したエラー メッセージと、この例外の原因である内部例外への参照を使用して、 TypeUnloadedException クラスの新しいインスタンスを初期化します。 |
TypeUnloadedException()
TypeUnloadedException クラスの新しいインスタンスを初期化します。
public:
TypeUnloadedException();
public TypeUnloadedException();
Public Sub New ()
注釈
このコンストラクターは、新しいインスタンスの Message プロパティを、"Type has unloaded" などのエラーを記述するシステム指定のメッセージに初期化します。このメッセージでは、現在のシステム カルチャが考慮されます。
次の表に、 TypeUnloadedExceptionのインスタンスの初期プロパティ値を示します。
| 財産 | 価値 |
|---|---|
| InnerException | null 参照 (Visual Basic のNothing )。 |
| Message | ローカライズされたエラー メッセージ文字列。 |
適用対象
TypeUnloadedException(String)
指定したエラー メッセージを使用して、 TypeUnloadedException クラスの新しいインスタンスを初期化します。
public:
TypeUnloadedException(System::String ^ message);
public TypeUnloadedException(string? message);
public TypeUnloadedException(string message);
new TypeUnloadedException : string -> TypeUnloadedException
Public Sub New (message As String)
パラメーター
- message
- String
エラーを説明するメッセージ。
注釈
message パラメーターの内容は、エンド ユーザーが理解できる必要があります。 このコンストラクターの呼び出し元は、この文字列が現在のシステム カルチャ用にローカライズされていることを確認する必要があります。
次の表に、 TypeUnloadedExceptionのインスタンスの初期プロパティ値を示します。
| 財産 | 価値 |
|---|---|
| InnerException | null 参照 (Visual Basic のNothing )。 |
| Message | エラー メッセージ文字列。 |
適用対象
TypeUnloadedException(SerializationInfo, StreamingContext)
注意事項
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
シリアル化されたデータを使用して、 TypeUnloadedException クラスの新しいインスタンスを初期化します。
protected:
TypeUnloadedException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[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 TypeUnloadedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected TypeUnloadedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<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 TypeUnloadedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> TypeUnloadedException
new TypeUnloadedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> TypeUnloadedException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
パラメーター
- info
- SerializationInfo
シリアル化されたオブジェクト データを保持するオブジェクト。
- context
- StreamingContext
ソースまたは変換先に関するコンテキスト情報。
- 属性
注釈
このコンストラクターは、ストリーム経由で送信される例外オブジェクトを再構成するために、逆シリアル化中に呼び出されます。 詳細については、「 XML および SOAP シリアル化」を参照してください。
こちらもご覧ください
適用対象
TypeUnloadedException(String, Exception)
指定したエラー メッセージと、この例外の原因である内部例外への参照を使用して、 TypeUnloadedException クラスの新しいインスタンスを初期化します。
public:
TypeUnloadedException(System::String ^ message, Exception ^ innerException);
public TypeUnloadedException(string? message, Exception? innerException);
public TypeUnloadedException(string message, Exception innerException);
new TypeUnloadedException : string * Exception -> TypeUnloadedException
Public Sub New (message As String, innerException As Exception)
パラメーター
- message
- String
例外の理由を説明するエラー メッセージ。
- innerException
- Exception
現在の例外の原因である例外。
innerException パラメーターが null 参照でない場合 (Visual Basic ではNothing)、内部例外を処理するcatch ブロックで現在の例外が発生します。
注釈
前の例外の直接の結果としてスローされる例外は、 InnerException プロパティに前の例外への参照を含めることができます。
InnerException プロパティは、コンストラクターに渡されるのと同じ値を返します。InnerException プロパティがコンストラクターに内部例外値を提供しない場合は null 参照 (Visual Basic でNothing)。
次の表に、 TypeUnloadedExceptionのインスタンスの初期プロパティ値を示します。
| 財産 | 価値 |
|---|---|
| InnerException | 内部例外参照。 |
| Message | エラー メッセージ文字列。 |
こちらもご覧ください
- Exception
- 例外 の処理とスローの