Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions xml/System.Runtime.Loader/AssemblyLoadContext.xml
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,9 @@ Implementations of this method can return an assembly loaded into any <xref:Syst
> [!IMPORTANT]
> To prevent recursive stack overflow, do not call this instance's <xref:System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(System.Reflection.AssemblyName)> method from this method.

> [!NOTE]
> If this method throws a <xref:System.IO.FileNotFoundException>, the resolution process continues. The <xref:System.Runtime.Loader.AssemblyLoadContext.Resolving> event and the <xref:System.AppDomain.AssemblyResolve> event are still fired. Any other exception stops the resolution process immediately.
Comment thread
elinor-fung marked this conversation as resolved.

]]></format>
</remarks>
<related type="Article" href="/dotnet/core/dependency-loading/loading-managed">Managed assembly loading algorithm</related>
Expand Down Expand Up @@ -1108,6 +1111,9 @@ The OS handle returned by this method can be used with methods of the <xref:Syst
> [!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.

> [!NOTE]
> If an event handler throws a <xref:System.IO.FileNotFoundException>, the <xref:System.AppDomain.AssemblyResolve> event is still fired. This gives other extension points a chance to resolve the assembly. Any other exception stops the resolution process immediately and isn't propagated to other handlers.
Comment thread
elinor-fung marked this conversation as resolved.

For more information about handling events, see [Handle and raise events](/dotnet/standard/events/).

It is noteworthy that a handler can be added for this event on any <xref:System.Runtime.Loader.AssemblyLoadContext>, including the default context.
Expand Down
Loading