AssemblyLoadContext.Load(AssemblyName) AssemblyLoadContext.Load(AssemblyName) AssemblyLoadContext.Load(AssemblyName) Method

Definition

When overridden in a derived class, allows an assembly to be resolved and loaded based on its AssemblyName.

protected:
 virtual System::Reflection::Assembly ^ Load(System::Reflection::AssemblyName ^ assemblyName);
protected virtual System.Reflection.Assembly Load (System.Reflection.AssemblyName assemblyName);
abstract member Load : System.Reflection.AssemblyName -> System.Reflection.Assembly
override this.Load : System.Reflection.AssemblyName -> System.Reflection.Assembly

Parameters

assemblyName
AssemblyName AssemblyName AssemblyName

The object that describes the assembly to be loaded.

Returns

The loaded assembly, or null.

Remarks

During assembly resolution, the Load(AssemblyName) method has the first chance to resolve the assembly name to a loaded assembly. It can either load an assembly or return null. If it returns null, the resolution process continues. See LoadFromAssemblyName(AssemblyName) for the full process description.

Important

To prevent recursive stack overflow, do not call this instance's LoadFromAssemblyName(AssemblyName) method from this method.

Applies to