Interface IAssemblyLoader
- Namespace
- Microsoft.VisualStudio.Composition
- Assembly
- Microsoft.VisualStudio.Composition.dll
Supplies the functionality for loading assemblies.
public interface IAssemblyLoader
Remarks
Implementations MUST be thread-safe and should be very fast for assemblies that have already been loaded.
Methods
LoadAssembly(AssemblyName)
Loads an assembly with the specified name.
Assembly LoadAssembly(AssemblyName assemblyName)
Parameters
assemblyName
AssemblyNameThe assembly name.
Returns
Exceptions
- Exception
May be thrown if the assembly cannot be found or fails to load.
LoadAssembly(string, string?)
Loads an assembly with the specified name and path.
Assembly LoadAssembly(string assemblyFullName, string? codeBasePath)
Parameters
assemblyFullName
stringThe full name of the assembly, as might be found in the FullName property.
codeBasePath
stringThe path to the assembly to load. May be null.
Returns
Exceptions
- Exception
May be thrown if the assembly cannot be found or fails to load.