A method that can be used in an AssemblyResolve event to locate assemblies in the current or parent folder.
sender
The source of the event.
args
The event data.
The Assembly whose dependency is being resolved.
This method can be hooked into an AssemblyResolve event to locate an assembly when the resolution of an assembly fails. It is particularly useful in LEADTOOLS medical add-ins. This method first checks to see if the missing assembly is already loaded in the current process. If the assembly still cannot be located, this method checks for the assembly in the current and parent folder.
This example shows how a Medical add-in (or any other assembly) can use the AssemblyResolveCheckParentFolder method
using Leadtools.Dicom.AddIn;
public void Example_AssemblyResolveCheckParentFolder()
{
// Addin initialize code
AppDomain.CurrentDomain.AssemblyResolve += AddInUtils.AssemblyResolveCheckParentFolder;
// Do some work
// ...
// ...
// End of work
// Addin exit code
AppDomain.CurrentDomain.AssemblyResolve -= AddInUtils.AssemblyResolveCheckParentFolder;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.