Skip to content

Commit 16e41e3

Browse files
committed
List correct exceptions for AssemblyLoadContext.LoadUnmanagedDllFromPath
1 parent d6380fa commit 16e41e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xml/System.Runtime.Loader/AssemblyLoadContext.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,8 @@ Each <xref:System.Runtime.Loader.AssemblyLoadContext> can load only:
779779
<exception cref="T:System.ArgumentNullException">
780780
<paramref name="unmanagedDllPath" /> is <see langword="null" />.</exception>
781781
<exception cref="T:System.ArgumentException">The <paramref name="unmanagedDllPath" /> argument is not an absolute path.</exception>
782-
<exception cref="T:System.IO.FileNotFoundException">The unmanaged library cannot be found.</exception>
782+
<exception cref="T:System.DllNotFoundException">The library can't be found.</exception>
783+
<exception cref="T:System.BadImageFormatException">The library is not valid.</exception>
783784
</Docs>
784785
</Member>
785786
<Member MemberName="Name">

0 commit comments

Comments
 (0)