AssemblyInfo.LoadedAssemblies プロパティ

定義

アプリケーションによって読み込まれたすべてのアセンブリのコレクションを取得します。

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)

プロパティ値

アプリケーションによって読み込まれたすべてのアセンブリを保持する ReadOnlyCollection<T>Assembly

例外

アプリケーション ドメインが読み込まれていません。

この例では、 プロパティを My.Application.Info.LoadedAssemblies 使用して、アプリケーションによって読み込まれたアセンブリを表示します。

ListBox1.DataSource = My.Application.Info.LoadedAssemblies

この例では、Windows フォーム アプリケーションに という名前ListBox1のコントロールがListBox必要です。

注釈

プロパティは My.Application.Info.LoadedAssemblies 、 メソッドに GetAssemblies 似ています。

プロジェクトの種類別の可用性

プロジェクトの種類 使用可能
Windows フォーム アプリケーション はい
クラス ライブラリ はい
コンソール アプリケーション はい
Windows フォーム コントロール ライブラリ はい
Web コントロール ライブラリ いいえ
Windows サービス はい
Web サイト いいえ

適用対象

こちらもご覧ください