Share via


AssemblyLoadContext.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;
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) 

이벤트 유형

설명

지정된 어셈블리를 반환하거나 어셈블리가 인식되지 않는 경우 를 반환 null 하는 것은 이 이벤트에 대한 처리기의 책임입니다.

중요

이 이벤트에 대해 둘 이상의 이벤트 처리기가 등록된 경우 이벤트 처리기가 가 아닌 값을 반환할 때까지 이벤트 처리기가 순서대로 호출됩니다 null. 후속 이벤트 처리기는 무시됩니다.

이벤트 처리에 대한 자세한 내용은 이벤트 처리 및 발생을 참조하세요.

기본 컨텍스트를 포함하여 모든 AssemblyLoadContext에서 이 이벤트에 대한 처리기를 추가할 수 있습니다.

적용 대상

추가 정보