AssemblyInfo.LoadedAssemblies Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για