My.Application.Info.LoadedAssemblies Property 

Gets a collection of all assemblies loaded by the application.

' Usage
Dim value As System.Collections.ObjectModel.ReadOnlyCollection(Of System.Reflection.Assembly) = My.Application.Info.LoadedAssemblies
' Declaration
Public ReadOnly Property LoadedAssemblies As System.Collections.ObjectModel.ReadOnlyCollection(Of System.Reflection.Assembly)

Return Value

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

Exceptions

The following condition can cause an exception:

Remarks

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

Example

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.

Requirements

Namespace: Microsoft.VisualBasic.ApplicationServices

Class: AssemblyInfo

Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)

Availability by Project Type

Project type Available

Windows Application

Yes

Class Library

Yes

Console Application

Yes

Windows Control Library

Yes

Web Control Library

No

Windows Service

Yes

Web Site

No

Permissions

No permissions are required.

See Also

Reference

My.Application.Info Object
ReadOnlyCollection
System.Reflection.Assembly
Microsoft.VisualBasic.ApplicationServices.AssemblyInfo.LoadedAssemblies