MetadataLoadContext.LoadFromAssemblyName 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.
Overloads
LoadFromAssemblyName(AssemblyName) |
Resolves the supplied assembly name to an assembly. If an assembly was previously bound to this name, that assembly is returned. Otherwise, the MetadataLoadContext calls the specified MetadataAssemblyResolver. |
LoadFromAssemblyName(String) |
Resolves the supplied assembly name to an assembly. If an assembly was previously bound to this name, that assembly is returned. Otherwise, the MetadataLoadContext calls the specified MetadataAssemblyResolver. |
LoadFromAssemblyName(AssemblyName)
- Source:
- MetadataLoadContext.Apis.cs
- Source:
- MetadataLoadContext.Apis.cs
- Source:
- MetadataLoadContext.Apis.cs
- Source:
- MetadataLoadContext.Apis.cs
Resolves the supplied assembly name to an assembly. If an assembly was previously bound to this name, that assembly is returned. Otherwise, the MetadataLoadContext calls the specified MetadataAssemblyResolver.
public:
System::Reflection::Assembly ^ LoadFromAssemblyName(System::Reflection::AssemblyName ^ assemblyName);
public System.Reflection.Assembly LoadFromAssemblyName (System.Reflection.AssemblyName assemblyName);
member this.LoadFromAssemblyName : System.Reflection.AssemblyName -> System.Reflection.Assembly
Public Function LoadFromAssemblyName (assemblyName As AssemblyName) As Assembly
Parameters
- assemblyName
- AssemblyName
An AssemblyName instance.
Returns
An Assembly instance.
Exceptions
The resolver returns null
.
Remarks
Note that the behavior of this method matches the behavior of the AssemblyLoadContext.LoadFromAssemblyName resolve event, but does not match the behavior of Assembly.ReflectionOnlyLoad. (The latter gives up without raising its resolve event.)
Applies to
LoadFromAssemblyName(String)
- Source:
- MetadataLoadContext.Apis.cs
- Source:
- MetadataLoadContext.Apis.cs
- Source:
- MetadataLoadContext.Apis.cs
- Source:
- MetadataLoadContext.Apis.cs
Resolves the supplied assembly name to an assembly. If an assembly was previously bound to this name, that assembly is returned. Otherwise, the MetadataLoadContext calls the specified MetadataAssemblyResolver.
public:
System::Reflection::Assembly ^ LoadFromAssemblyName(System::String ^ assemblyName);
public System.Reflection.Assembly LoadFromAssemblyName (string assemblyName);
member this.LoadFromAssemblyName : string -> System.Reflection.Assembly
Public Function LoadFromAssemblyName (assemblyName As String) As Assembly
Parameters
Returns
An Assembly instance.
Exceptions
The resolver returns null
.
Remarks
Note that the behavior of this method matches the behavior of the AssemblyLoadContext.LoadFromAssemblyName resolve event but does not match the behavior of Assembly.ReflectionOnlyLoad. (The latter gives up without raising its resolve event.)
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기