AssemblyInfo.LoadedAssemblies Property

Definition

Gets a collection of all assemblies loaded by the application.

public:
 property System::Collections::ObjectModel::ReadOnlyCollection<System::Reflection::Assembly ^> ^ LoadedAssemblies { System::Collections::ObjectModel::ReadOnlyCollection<System::Reflection::Assembly ^> ^ get(); };
public System.Collections.ObjectModel.ReadOnlyCollection<System.Reflection.Assembly> LoadedAssemblies { get; }
member this.LoadedAssemblies : System.Collections.ObjectModel.ReadOnlyCollection<System.Reflection.Assembly>
Public ReadOnly Property LoadedAssemblies As ReadOnlyCollection(Of Assembly)

Property Value

A ReadOnlyCollection<T> of Assembly containing all the assemblies loaded by the application.

Exceptions

The application domain is not loaded.

Examples

This example uses the My.Application.Info.LoadedAssemblies property to display the assemblies loaded by the application.

ListBox1.DataSource = My.Application.Info.LoadedAssemblies

This example requires that your Windows Forms application has a ListBox control named ListBox1.

Remarks

The My.Application.Info.LoadedAssemblies property is similar to the GetAssemblies method.

Availability by Project Type

Project type Available
Windows Forms Application Yes
Class Library Yes
Console Application Yes
Windows Forms Control Library Yes
Web Control Library No
Windows Service Yes
Web Site No

Applies to

See also