AssemblyLoadContext.LoadFromAssemblyPath(String) 方法      
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
加载指定路径上的程序集文件的内容。
public:
 System::Reflection::Assembly ^ LoadFromAssemblyPath(System::String ^ assemblyPath);public System.Reflection.Assembly LoadFromAssemblyPath (string assemblyPath);member this.LoadFromAssemblyPath : string -> System.Reflection.AssemblyPublic Function LoadFromAssemblyPath (assemblyPath As String) As Assembly参数
- assemblyPath
- String
要加载的文件的完全限定路径。
返回
加载的程序集。
例外
              assemblyPath 参数不是绝对路径。
              assemblyPath 参数为 null。
无法加载已找到的文件。
参数 assemblyPath 是空字符串 (“”) 或不存在。
参数 assemblyPath 不是有效的程序集。