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

要載入的完整檔案路徑。

傳回

載入的組件。

例外狀況

assemblyPath 引數不是絕對路徑。

assemblyPath 引數為 null

無法載入找到的檔案。

assemblyPath 變數是空字串 (「」) 或不存在。

assemblyPath 變數不是有效的元件。

適用於

另請參閱