AssemblyLoadContext.Load(AssemblyName) 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.
When overridden in a derived class, allows an assembly to be resolved based on its AssemblyName.
protected:
virtual System::Reflection::Assembly ^ Load(System::Reflection::AssemblyName ^ assemblyName);
protected:
abstract System::Reflection::Assembly ^ Load(System::Reflection::AssemblyName ^ assemblyName);
protected virtual System.Reflection.Assembly? Load (System.Reflection.AssemblyName assemblyName);
protected abstract 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
abstract member Load : System.Reflection.AssemblyName -> System.Reflection.Assembly
Protected Overridable Function Load (assemblyName As AssemblyName) As Assembly
Protected MustOverride Function Load (assemblyName As AssemblyName) As Assembly
Parameters
- assemblyName
- AssemblyName
The object that describes the assembly to be resolved.
Returns
The resolved 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 load an assembly and return it, return an already loaded assembly, or return null
. If it returns null
, the resolution process continues. For the full process description, see Managed assembly loading algorithm.
Implementations of this method can return an assembly loaded into any AssemblyLoadContext, not just the instance it was called on. Returning an assembly from a different AssemblyLoadContext does not result in that assembly becoming associated with this instance.
Important
To prevent recursive stack overflow, do not call this instance's LoadFromAssemblyName(AssemblyName) method from this method.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기