Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
Location
My.Application.Info.LoadedAssemblies Syntax
Dim result As System.Collections.ObjectModel. _ ReadOnlyCollection(Of System.Reflection.Assembly) = _ My.Application.Info.LoadedAssemblies
Description
The LoadedAssemblies property returns a collection of all assemblies currently loaded by the active application, with each element of type System.Reflection.Assembly. Usage at a Glance
Example
The following example displays the names of all currently loaded assemblies in a message box. Dim assemblyList As String = "" Dim allAssemblies As System.Collections.ObjectModel. _ ReadOnlyCollection(Of System.Reflection.Assembly) = _ My.Application.Info.LoadedAssemblies For Each oneAssembly As System.Reflection.Assembly _ In allAssemblies assemblyList &= "|" & oneAssembly.FullName Next oneAssembly MsgBox("The following assemblies are currently loaded:" & _ Replace(assemblyList, "|", vbCrLf))
Related Framework Entries
See Also
AssemblyName Property, DirectoryPath Property, Info Object (My.Application) |
Категории