AssemblyLoadContext.LoadFromAssemblyPath(String) Method      
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Loads the contents of an assembly file on the specified path.
public:
 System::Reflection::Assembly ^ LoadFromAssemblyPath(System::String ^ assemblyPath);[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Types and members the loaded assembly depends on might be removed")]
public System.Reflection.Assembly LoadFromAssemblyPath(string assemblyPath);public System.Reflection.Assembly LoadFromAssemblyPath(string assemblyPath);[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Types and members the loaded assembly depends on might be removed")>]
member this.LoadFromAssemblyPath : string -> System.Reflection.Assemblymember this.LoadFromAssemblyPath : string -> System.Reflection.AssemblyPublic Function LoadFromAssemblyPath (assemblyPath As String) As AssemblyParameters
- assemblyPath
- String
The fully qualified path of the file to load.
Returns
The loaded assembly.
- Attributes
Exceptions
The assemblyPath argument is not an absolute path.
The assemblyPath argument is null.
A file that was found could not be loaded.
The assemblyPath argument is an empty string ("") or does not exist.
The  assemblyPath argument is not a valid assembly.