AssemblyLoadContext.LoadFromAssemblyPath(String) メソッド

定義

指定したパスのアセンブリ ファイルの内容を読み込みます。

public:
 System::Reflection::Assembly ^ LoadFromAssemblyPath(System::String ^ assemblyPath);
public System.Reflection.Assembly LoadFromAssemblyPath (string assemblyPath);
member this.LoadFromAssemblyPath : string -> System.Reflection.Assembly
Public Function LoadFromAssemblyPath (assemblyPath As String) As Assembly

パラメーター

assemblyPath
String

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

戻り値

Assembly

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

例外

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

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

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

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

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

適用対象