AssemblyLoadContext.Resolving Event
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.
Occurs when the resolution of an assembly fails when attempting to load into this assembly load context.
public:
event Func<System::Runtime::Loader::AssemblyLoadContext ^, System::Reflection::AssemblyName ^, System::Reflection::Assembly ^> ^ Resolving;
public event Func<System.Runtime.Loader.AssemblyLoadContext,System.Reflection.AssemblyName,System.Reflection.Assembly?>? Resolving;
public event Func<System.Runtime.Loader.AssemblyLoadContext,System.Reflection.AssemblyName,System.Reflection.Assembly> Resolving;
member this.Resolving : Func<System.Runtime.Loader.AssemblyLoadContext, System.Reflection.AssemblyName, System.Reflection.Assembly>
Public Custom Event Resolving As Func(Of AssemblyLoadContext, AssemblyName, Assembly)
Public Event Resolving As Func(Of AssemblyLoadContext, AssemblyName, Assembly)
Event Type
Remarks
It is the responsibility of the handler for this event to return the assembly that is specified, or to return null
if the assembly is not recognized.
Important
If more than one event handler is registered for this event, the event handlers are called in order until an event handler returns a value that isn't null
. Subsequent event handlers are ignored.
For more information about handling events, see Handle and raise events.
It is noteworthy that a handler can be added for this event on any AssemblyLoadContext, including the default context.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기