Name
DllNotFoundException
Synopsis
This exception indicates that the file
specified in a DLL import could not be
found (see
System.Runtime.InteropServices.DllImportAttribute).
This exception is thrown only when you attempt to link against a
method declared using the P/Invoke features of .NET. Any managed DLL
(such as those produced by C# or Visual Basic .NET) that cannot be
found instead generates TypeLoadExceptions when
you attempt to resolve types out of an assembly that cannot be found.
public class DllNotFoundException : TypeLoadException { // Public Constructors public DllNotFoundException( ); public DllNotFoundException(stringmessage); public DllNotFoundException(stringmessage, Exceptioninner); // Protected Constructors protected DllNotFoundException(System.Runtime.Serialization.SerializationInfoinfo, System.Runtime.Serialization.StreamingContextcontext); }
Hierarchy
Object
→
Exception(System.Runtime.Serialization.ISerializable)
→
SystemException
→
TypeLoadException
→
DllNotFoundException
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access