Table of Contents

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 AssemblyName

The assembly name.

Returns

Assembly

The loaded assembly. Never null.

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 string

The full name of the assembly, as might be found in the FullName property.

codeBasePath string

The path to the assembly to load. May be null.

Returns

Assembly

The loaded assembly. Never null.

Exceptions

Exception

May be thrown if the assembly cannot be found or fails to load.