DllNotFoundException コンストラクター

定義

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

オーバーロード

DllNotFoundException()

DllNotFoundException クラスの新しいインスタンスを、既定のプロパティを使用して初期化します。

DllNotFoundException(String)

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

DllNotFoundException(SerializationInfo, StreamingContext)
古い.

シリアル化したデータを使用して、DllNotFoundException クラスの新しいインスタンスを初期化します。

DllNotFoundException(String, Exception)

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

DllNotFoundException()

Source:
DllNotFoundException.cs
Source:
DllNotFoundException.cs
Source:
DllNotFoundException.cs

DllNotFoundException クラスの新しいインスタンスを、既定のプロパティを使用して初期化します。

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

注釈

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

プロパティ
InnerException null 参照 (Visual Basic の場合は Nothing)。
Message ローカライズされたエラー メッセージ文字列。

適用対象

DllNotFoundException(String)

Source:
DllNotFoundException.cs
Source:
DllNotFoundException.cs
Source:
DllNotFoundException.cs

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

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

パラメーター

message
String

例外の原因を説明するエラー メッセージ。

注釈

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

プロパティ
InnerException null 参照 (Visual Basic の場合は Nothing)。
Message エラー メッセージ文字列。

適用対象

DllNotFoundException(SerializationInfo, StreamingContext)

Source:
DllNotFoundException.cs
Source:
DllNotFoundException.cs
Source:
DllNotFoundException.cs

注意事項

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

シリアル化したデータを使用して、DllNotFoundException クラスの新しいインスタンスを初期化します。

protected:
 DllNotFoundException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected DllNotFoundException (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 DllNotFoundException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new DllNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> DllNotFoundException
[<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 DllNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> DllNotFoundException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

パラメーター

info
SerializationInfo

スローされている例外に関するシリアル化済みオブジェクト データを保持している SerializationInfo

context
StreamingContext

転送元または転送先についてのコンテキスト情報を含む StreamingContext です。

属性

適用対象

DllNotFoundException(String, Exception)

Source:
DllNotFoundException.cs
Source:
DllNotFoundException.cs
Source:
DllNotFoundException.cs

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

public:
 DllNotFoundException(System::String ^ message, Exception ^ inner);
public DllNotFoundException (string message, Exception inner);
public DllNotFoundException (string? message, Exception? inner);
new DllNotFoundException : string * Exception -> DllNotFoundException
Public Sub New (message As String, inner As Exception)

パラメーター

message
String

例外の原因を説明するエラー メッセージ。

inner
Exception

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

注釈

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

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

プロパティ [値]
InnerException 内部例外の参照。
Message エラー メッセージ文字列。

こちらもご覧ください

適用対象