AssemblyLoadContext.LoadFromNativeImagePath(String, String) メソッド

定義

指定したパスにあるマネージド アセンブリ ファイルのネイティブ イメージの内容を読み込みます。

public:
 System::Reflection::Assembly ^ LoadFromNativeImagePath(System::String ^ nativeImagePath, System::String ^ assemblyPath);
public System.Reflection.Assembly LoadFromNativeImagePath (string nativeImagePath, string? assemblyPath);
public System.Reflection.Assembly LoadFromNativeImagePath (string nativeImagePath, string assemblyPath);
member this.LoadFromNativeImagePath : string * string -> System.Reflection.Assembly
Public Function LoadFromNativeImagePath (nativeImagePath As String, assemblyPath As String) As Assembly

パラメーター

nativeImagePath
String

読み込むファイルの完全修飾パス。

assemblyPath
String

読み込むファイルの IL バージョンの完全修飾パス。または null

戻り値

Assembly

読み込まれるアセンブリ。

例外

nativeImagePath 引数が絶対パスではありません。

assemblyPath 引数が絶対パスではありません。

nativeImagePath パラメーターが null です。

検出されたファイルを読み込めませんでした。

nativeImagePath パラメーターが空の文字列 ("") になっているか、存在しません。

assemblyPath は有効なアセンブリではありません。

注釈

マネージド アセンブリのネイティブ イメージは、特定のプラットフォームでの実行を最適化するために事前に jit 化されています。

アセンブリ パスは、アセンブリの IL バージョンへのパスを参照します。 IL は通常、ネイティブ イメージに含まれるため、省略可能な引数です。 ネイティブ イメージが見つからない場合は、ランタイムによってフォールバックとして使用できます。

適用対象